[Zope3-checkins] SVN: zope.testing/trunk/src/zope/testing/doctest.py fix a broken test (from vaab in #zope-dev)

Benji York benji at zope.com
Thu Nov 12 14:28:25 EST 2009


Log message for revision 105587:
  fix a broken test (from vaab in #zope-dev)
  

Changed:
  U   zope.testing/trunk/src/zope/testing/doctest.py

-=-
Modified: zope.testing/trunk/src/zope/testing/doctest.py
===================================================================
--- zope.testing/trunk/src/zope/testing/doctest.py	2009-11-11 21:21:51 UTC (rev 105586)
+++ zope.testing/trunk/src/zope/testing/doctest.py	2009-11-12 19:28:24 UTC (rev 105587)
@@ -2212,16 +2212,15 @@
     The old flag is returned so that a runner could restore the old
     value if it wished to:
 
-      >>> old = _unittest_reportflags
+      >>> import doctest
+      >>> old = doctest._unittest_reportflags
       >>> set_unittest_reportflags(REPORT_NDIFF |
       ...                          REPORT_ONLY_FIRST_FAILURE) == old
       True
 
-# XXX this test fails and I didn't do it, so just commenting it out (JBY).
-#      >>> import doctest
-#      >>> doctest._unittest_reportflags == (REPORT_NDIFF |
-#      ...                                   REPORT_ONLY_FIRST_FAILURE)
-#      True
+      >>> doctest._unittest_reportflags == (REPORT_NDIFF |
+      ...                                   REPORT_ONLY_FIRST_FAILURE)
+      True
 
     Only reporting flags can be set:
 



More information about the Zope3-Checkins mailing list