summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Gedminas <marius@gedmin.as>2013-02-08 17:09:28 +0000
committerMarius Gedminas <marius@gedmin.as>2013-02-08 17:09:28 +0000
commitf3be086ab5e2b1b972f043bee535ba5384320aea (patch)
tree879ebb9e02e3900210f7d56e9a78738aea5778fd
parentc278af8b431e558883f3aa17fc3fcbe42697b826 (diff)
downloadzope-tal-f3be086ab5e2b1b972f043bee535ba5384320aea.tar.gz
This should make the tests pass on Windows.
Does anybody care about Windows?
-rw-r--r--src/zope/tal/runtest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zope/tal/runtest.py b/src/zope/tal/runtest.py
index fb002b8..02866eb 100644
--- a/src/zope/tal/runtest.py
+++ b/src/zope/tal/runtest.py
@@ -119,6 +119,11 @@ def main():
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")