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.
This commit is contained in:
Jason Rhinelander 2016-07-05 16:03:43 -04:00
parent 3b48482f02
commit f23e0b5e95

View File

@ -68,6 +68,6 @@ else:
print('Test "%s" FAILED!' % name)
print('--- output')
print('+++ reference')
print(''.join(difflib.ndiff(output.splitlines(keepends=True),
reference.splitlines(keepends=True))))
print('\n'.join(difflib.ndiff(output.splitlines(),
reference.splitlines())))
exit(-1)