[Zope3-checkins] SVN: zope.testing/branches/adamg-renormalizefix/src/zope/testing/testrunner/tests.py tests pass on linux
Adam Groszer
agroszer at gmail.com
Sun Jun 7 11:46:25 EDT 2009
Log message for revision 100704:
tests pass on linux
Changed:
U zope.testing/branches/adamg-renormalizefix/src/zope/testing/testrunner/tests.py
-=-
Modified: zope.testing/branches/adamg-renormalizefix/src/zope/testing/testrunner/tests.py
===================================================================
--- zope.testing/branches/adamg-renormalizefix/src/zope/testing/testrunner/tests.py 2009-06-07 15:40:06 UTC (rev 100703)
+++ zope.testing/branches/adamg-renormalizefix/src/zope/testing/testrunner/tests.py 2009-06-07 15:46:25 UTC (rev 100704)
@@ -26,6 +26,8 @@
from zope.testing import renormalizing
+#separated checkers for the different platform,
+#because it s...s to maintain just one
if sys.platform == 'win32':
checker = renormalizing.RENormalizing([
# 2.5 changed the way pdb reports exceptions
@@ -98,6 +100,9 @@
(re.compile(r"<type 'exceptions.(\w+)Error'>:"),
r'exceptions.\1Error:'),
+ #this is a magic to put linefeeds into the doctest
+ #on win it takes one step, linux is crazy about the same...
+ (re.compile('##r##'), r'\r'),
(re.compile(r'\r'), '\\\\r\n'),
(re.compile(r'\d+[.]\d\d\d seconds'), 'N.NNN seconds'),
More information about the Zope3-Checkins
mailing list