Merge pull request #266 from jagerman/fix-python27-test-output

Fix test diff output under python2.7
This commit is contained in:
Wenzel Jakob 2016-07-05 22:07:34 +02:00 committed by GitHub
commit c9f69bc35a

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)