[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/testing/functional.py Changed the way doctest reporting flags are set so that flags set by

Jim Fulton jim at zope.com
Wed Jun 29 16:08:45 EDT 2005


Log message for revision 30943:
  Changed the way doctest reporting flags are set so that flags set by
  the test runner are honored.
  

Changed:
  U   Zope3/trunk/src/zope/app/testing/functional.py

-=-
Modified: Zope3/trunk/src/zope/app/testing/functional.py
===================================================================
--- Zope3/trunk/src/zope/app/testing/functional.py	2005-06-28 13:59:49 UTC (rev 30942)
+++ Zope3/trunk/src/zope/app/testing/functional.py	2005-06-29 20:08:45 UTC (rev 30943)
@@ -669,7 +669,10 @@
     kw['tearDown'] = tearDown
 
     if 'optionflags' not in kw:
-        kw['optionflags'] = (doctest.ELLIPSIS
+        old = doctest.set_unittest_reportflags(0)
+        doctest.set_unittest_reportflags(old)
+        kw['optionflags'] = (old
+                             | doctest.ELLIPSIS
                              | doctest.REPORT_NDIFF
                              | doctest.NORMALIZE_WHITESPACE)
 



More information about the Zope3-Checkins mailing list