SVN: zope.testing/branches/adamg-renormalizefix/src/zope/testing/testrunner/tests.py tests pass on linux

Adam Groszer <[email protected]>
Newsgroups gmane.comp.web.zope.zope3.cvs
Message-ID <[email protected]>
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'),
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.