diff options
author | Marius Gedminas <marius@gedmin.as> | 2013-02-08 17:09:28 +0000 |
---|---|---|
committer | Marius Gedminas <marius@gedmin.as> | 2013-02-08 17:09:28 +0000 |
commit | f3be086ab5e2b1b972f043bee535ba5384320aea (patch) | |
tree | 879ebb9e02e3900210f7d56e9a78738aea5778fd /src/zope/tal/runtest.py | |
parent | c278af8b431e558883f3aa17fc3fcbe42697b826 (diff) | |
download | zope-tal-f3be086ab5e2b1b972f043bee535ba5384320aea.tar.gz |
This should make the tests pass on Windows.
Does anybody care about Windows?
Diffstat (limited to 'src/zope/tal/runtest.py')
-rw-r--r-- | src/zope/tal/runtest.py | 5 |
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") |