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

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <20100902160745.D1634941DF__49625.4025646069$1283443673$gmane$org@cvs.zope.org>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.