[Zope3-checkins] SVN: zope.testing/trunk/src/zope/testing/testrunner.py Modified the normalizing regular expressions to ignore traceback

Jim Fulton jim at zope.com
Wed May 25 11:54:37 EDT 2005


Log message for revision 30498:
  Modified the normalizing regular expressions to ignore traceback
  entries for unittest.py and doctest.py, which are highly subject to
  change.
  

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

-=-
Modified: zope.testing/trunk/src/zope/testing/testrunner.py
===================================================================
--- zope.testing/trunk/src/zope/testing/testrunner.py	2005-05-25 12:41:11 UTC (rev 30497)
+++ zope.testing/trunk/src/zope/testing/testrunner.py	2005-05-25 15:54:07 UTC (rev 30498)
@@ -945,7 +945,13 @@
         (re.compile(r'0[.]\d\d\d seconds'), '0.NNN seconds'),
         (re.compile(r'\d+[.]\d\d\d ms'), 'N.NNN ms'),
         (re.compile('( |")[^\n]+testrunner-ex'), r'\1testrunner-ex'),
-        (re.compile('"[^\n]+(doc|unit)test.py'), r'".../\1test.py'),
+
+        # omit traceback entries for unittest.py or doctest.py from
+        # output:
+        (re.compile(r'\n +File "[^\n]+(doc|unit)test.py", [^\n]+\n[^\n]+\n'),
+         r'\n'),
+
+
         ])
 
     def setUp(test):



More information about the Zope3-Checkins mailing list