[Zope3-checkins] SVN: zope.testing/trunk/src/zope/testing/testrunner.py Fix testrunner-colors.txt test failure on Python 2.3.

Marius Gedminas marius at pov.lt
Sun Jul 15 11:41:56 EDT 2007


Log message for revision 78006:
  Fix testrunner-colors.txt test failure on Python 2.3.
  
  

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	2007-07-15 14:41:56 UTC (rev 78005)
+++ zope.testing/trunk/src/zope/testing/testrunner.py	2007-07-15 15:41:55 UTC (rev 78006)
@@ -2474,12 +2474,16 @@
         (re.compile(r'[.]py\(\d+\)'), r'.py(NNN)'),
         (re.compile(r'[.]py:\d+'), r'.py:NNN'),
         (re.compile(r' line \d+,', re.IGNORECASE), r' Line NNN,'),
+        (re.compile(r' line {([a-z]+)}\d+{', re.IGNORECASE), r' Line {\1}NNN{'),
 
         # omit traceback entries for unittest.py or doctest.py from
         # output:
         (re.compile(r'^ +File "[^\n]*(doc|unit)test.py", [^\n]+\n[^\n]+\n',
                     re.MULTILINE),
          r''),
+        (re.compile(r'^{\w+} +File "{\w+}[^\n]*(doc|unit)test.py{\w+}", [^\n]+\n[^\n]+\n',
+                    re.MULTILINE),
+         r''),
         (re.compile('^> [^\n]+->None$', re.M), '> ...->None'),
         (re.compile('import pdb; pdb'), 'Pdb()'), # Py 2.3
         ])



More information about the Zope3-Checkins mailing list