[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/tests/testDemoStorage.py The stdlib doctest.DocTestSuite is broken in such a way that you can't

Jim Fulton jim at zope.com
Thu Sep 2 12:07:45 EDT 2010


Log message for revision 116157:
  
  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.
  

Changed:
  U   ZODB/trunk/src/ZODB/tests/testDemoStorage.py

-=-
Modified: ZODB/trunk/src/ZODB/tests/testDemoStorage.py
===================================================================
--- ZODB/trunk/src/ZODB/tests/testDemoStorage.py	2010-09-02 16:06:41 UTC (rev 116156)
+++ ZODB/trunk/src/ZODB/tests/testDemoStorage.py	2010-09-02 16:07:45 UTC (rev 116157)
@@ -22,7 +22,12 @@
     StorageTestBase,
     Synchronization,
     )
-import doctest
+
+import os
+if os.environ.get('USE_ZOPE_TESTING_DOCTEST'):
+    from zope.testing import doctest
+else:
+    import doctest
 import random
 import transaction
 import unittest



More information about the Zodb-checkins mailing list