mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 16:37:13 +00:00
Merge pull request #266 from jagerman/fix-python27-test-output
Fix test diff output under python2.7
This commit is contained in:
commit
c9f69bc35a
@ -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