Commit b4b93e99 authored by Jim Fulton's avatar Jim Fulton

The stdlib doctest.DocTestSuite is broken in such a way that you can't

repeat tests.  Provide an environment variable to use the doctest from
zope.testing.
parent 09a61159
...@@ -18,7 +18,11 @@ import sys ...@@ -18,7 +18,11 @@ import sys
import unittest import unittest
import persistent import persistent
import transaction import transaction
from doctest import DocTestSuite import os
if os.environ.get('USE_ZOPE_TESTING_DOCTEST'):
from zope.testing.doctest import DocTestSuite
else:
from doctest import DocTestSuite
from ZODB.tests.util import DB from ZODB.tests.util import DB
def test_integration(): def test_integration():
......
...@@ -20,7 +20,12 @@ from ZODB.DB import DB ...@@ -20,7 +20,12 @@ from ZODB.DB import DB
from ZODB.FileStorage import FileStorage from ZODB.FileStorage import FileStorage
from ZODB.tests.testConfig import ConfigTestBase from ZODB.tests.testConfig import ConfigTestBase
import doctest import os
if os.environ.get('USE_ZOPE_TESTING_DOCTEST'):
from zope.testing import doctest
else:
import doctest
import os import os
import random import random
import re import re
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment