summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-05-12 23:17:07 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-05-12 23:17:07 -0700
commit54c990d17385156958556d86feca0c6e24da94e7 (patch)
tree9b751e2d023dc2ddab64bf4b69bc02d7ee3c5844 /test
parent9411fe7146a12d38e3fff194d9b885dacd9d6af2 (diff)
spec_tests.py: ignore line endings on diff.
Diffstat (limited to 'test')
-rwxr-xr-xtest/spec_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/spec_tests.py b/test/spec_tests.py
index 1b00c90..1bfa188 100755
--- a/test/spec_tests.py
+++ b/test/spec_tests.py
@@ -60,11 +60,11 @@ def do_test(converter, test, normalize, result_counts):
out("Expected: " + repr(expected_html) + '\n')
out("Got: " + repr(actual_html) + '\n')
else:
- expected_html_lines = expected_html.splitlines(True)
- actual_html_lines = actual_html.splitlines(True)
+ expected_html_lines = expected_html.splitlines(False)
+ actual_html_lines = actual_html.splitlines(False)
for diffline in unified_diff(expected_html_lines, actual_html_lines,
"expected HTML", "actual HTML"):
- out(diffline)
+ out(diffline + '\n')
out('\n')
result_counts['fail'] += 1
else: