[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/tests/functional.py changes to FunctionalDocFileSuite():

Fred L. Drake, Jr. fdrake at gmail.com
Wed Dec 22 13:12:54 EST 2004


Log message for revision 28688:
  changes to FunctionalDocFileSuite():
  - do not override optionflags if passed as an argument
  - include NORMALIZE_WHITESPACE in the default optionflags value
  

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

-=-
Modified: Zope3/trunk/src/zope/app/tests/functional.py
===================================================================
--- Zope3/trunk/src/zope/app/tests/functional.py	2004-12-22 17:17:53 UTC (rev 28687)
+++ Zope3/trunk/src/zope/app/tests/functional.py	2004-12-22 18:12:54 UTC (rev 28688)
@@ -626,7 +626,10 @@
         FunctionalTestSetup().tearDown()
     kw['tearDown'] = tearDown
 
-    kw['optionflags'] = doctest.ELLIPSIS | doctest.REPORT_NDIFF
+    if 'optionflags' not in kw:
+        kw['optionflags'] = (doctest.ELLIPSIS
+                             | doctest.REPORT_NDIFF
+                             | doctest.NORMALIZE_WHITESPACE)
 
     return doctest.DocFileSuite(*paths, **kw)
 



More information about the Zope3-Checkins mailing list