mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 07:02:11 +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('--- 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