diff --git a/example/run_test.py b/example/run_test.py index 70ce4a6c0..da0d9ee77 100755 --- a/example/run_test.py +++ b/example/run_test.py @@ -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)