[Checkins] SVN: zope.tal/trunk/src/zope/tal/runtest.py This should make the tests pass on Windows.
Marius Gedminas
cvs-admin at zope.org
Fri Feb 8 17:09:29 UTC 2013
Log message for revision 129235:
This should make the tests pass on Windows.
Does anybody care about Windows?
Changed:
U zope.tal/trunk/src/zope/tal/runtest.py
-=-
Modified: zope.tal/trunk/src/zope/tal/runtest.py
===================================================================
--- zope.tal/trunk/src/zope/tal/runtest.py 2013-02-08 14:34:25 UTC (rev 129234)
+++ zope.tal/trunk/src/zope/tal/runtest.py 2013-02-08 17:09:28 UTC (rev 129235)
@@ -119,6 +119,11 @@
actual = stdout.readlines()
else:
actual = readlines(stdout)
+ # EOL normalization makes the tests pass on Windows.
+ # XXX: somebody who *cares* please figure out if tal is doing sane
+ # things with newlines on insane platforms and file a bug if not.
+ actual = [l.replace('\r\n', '\n') for l in actual]
+ expected = [l.replace('\r\n', '\n') for l in expected]
if actual == expected:
if not unittesting:
print("OK")
More information about the checkins
mailing list