mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-19 09:25:51 +00:00
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:
parent
3b48482f02
commit
f23e0b5e95
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user