Commit f23e0b5e by Jason Rhinelander

Fix test diff output under python2.7

PR #220 broke failed test output under python2.7, which doesn't support
the keepends argument to splitlines.
parent 3b48482f
...@@ -68,6 +68,6 @@ else: ...@@ -68,6 +68,6 @@ else:
print('Test "%s" FAILED!' % name) print('Test "%s" FAILED!' % name)
print('--- output') print('--- output')
print('+++ reference') print('+++ reference')
print(''.join(difflib.ndiff(output.splitlines(keepends=True), print('\n'.join(difflib.ndiff(output.splitlines(),
reference.splitlines(keepends=True)))) reference.splitlines())))
exit(-1) exit(-1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment