SVN: ZODB/trunk/src/ZODB/tests/testFileStorage.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 <20100902204536.137E0941DF__17802.4928471588$1283460341$gmane$org@cvs.zope.org>
Log message for revision 116167:
  
  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/testFileStorage.py

-=-
Modified: ZODB/trunk/src/ZODB/tests/testFileStorage.py
===================================================================
--- ZODB/trunk/src/ZODB/tests/testFileStorage.py	2010-09-02 20:27:11 UTC (rev 116166)
+++ ZODB/trunk/src/ZODB/tests/testFileStorage.py	2010-09-02 20:45:35 UTC (rev 116167)
@@ -13,7 +13,10 @@
 ##############################################################################
 import cPickle
 import doctest
-import os, unittest
+import os
+if os.environ.get('USE_ZOPE_TESTING_DOCTEST'):
+    from zope.testing import doctest
+import unittest
 import transaction
 import ZODB.FileStorage
 import ZODB.tests.hexstorage
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.