[gobject-introspection] [warningtester] Invert expected/actual



commit 096d36ff0fa03b7e5e70c9c63935d91bac4dce49
Author: Johan Dahlin <johan gnome org>
Date:   Tue Sep 14 18:48:51 2010 -0300

    [warningtester] Invert expected/actual
    
    It makes it a little less confusing reading the error messages

 tests/warn/warningtester.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/warn/warningtester.py b/tests/warn/warningtester.py
index 7009e0e..c856a78 100644
--- a/tests/warn/warningtester.py
+++ b/tests/warn/warningtester.py
@@ -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:]))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]