mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-31 15:20:34 +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('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)
|
||||||
|
Loading…
Reference in New Issue
Block a user