SVN: zope.testing/trunk/src/zope/testing/doctest.py fix a broken test (from vaab in #zope-dev)
Benji York <[email protected]>
| Newsgroups | gmane.comp.web.zope.zope3.cvs |
|---|---|
| Message-ID | <20091112192825.869CF941A8__23146.0522547879$1258054118$gmane$org@cvs.zope.org> |
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: