[warningtester] Invert expected/actual
authorJohan Dahlin <johan@gnome.org>
Tue, 14 Sep 2010 21:48:51 +0000 (18:48 -0300)
committerJohan Dahlin <johan@gnome.org>
Tue, 14 Sep 2010 21:51:06 +0000 (18:51 -0300)
It makes it a little less confusing reading the error messages

tests/warn/warningtester.py

index 7009e0ea7f4e8316d43fe1170bfa9e4499f1736e..c856a7803af7820bd8bebd82df272f0ee3209db4 100644 (file)
@@ -107,7 +107,7 @@ def check(args):
             len(expected_warnings), len(warnings), warnings))
     for warning, (sort_key, expected) in zip(warnings, expected_warnings):
         actual = warning.split(":", 1)[1]
-        if _diff(actual, expected, filename):
+        if _diff(expected, actual, filename):
             raise SystemExit("ERROR: tests %r failed" % (filename, ))
 
 sys.exit(check(sys.argv[1:]))