From 13f2aba847d91d5fbf6ce31cbb048ec0b8937f0b Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Tue, 23 Jan 2018 22:36:43 +0000 Subject: [PATCH] Make test diffs go the logical way round: from expected to output --- tests/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/common.py b/tests/common.py index 0c33644..2bb6bdf 100644 --- a/tests/common.py +++ b/tests/common.py @@ -47,8 +47,8 @@ def teardown_module(module): def assert_or_diff(output, expected): if output != expected: import difflib - diff = difflib.ndiff(output.splitlines(True), - expected.splitlines(True)) + diff = difflib.ndiff(expected.splitlines(True), + output.splitlines(True)) import sys sys.stdout.write(''.join(diff)) assert False, (len(output), len(expected)) -- 2.40.0