]> granicus.if.org Git - recode/commitdiff
Make test diffs go the logical way round: from expected to output
authorReuben Thomas <rrt@sc3d.org>
Tue, 23 Jan 2018 22:36:43 +0000 (22:36 +0000)
committerReuben Thomas <rrt@sc3d.org>
Tue, 23 Jan 2018 22:37:02 +0000 (22:37 +0000)
tests/common.py

index 0c3364485b0c527f851c7ad39f4d351e2db5873d..2bb6bdf0ab8232d7930840db43df9dd73bb02a39 100644 (file)
@@ -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))