projects
/
platform
/
upstream
/
gobject-introspection.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8c4caf
)
[warningtester] Invert expected/actual
author
Johan Dahlin
<johan@gnome.org>
Tue, 14 Sep 2010 21:48:51 +0000
(18:48 -0300)
committer
Johan 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
patch
|
blob
|
history
diff --git
a/tests/warn/warningtester.py
b/tests/warn/warningtester.py
index 7009e0ea7f4e8316d43fe1170bfa9e4499f1736e..c856a7803af7820bd8bebd82df272f0ee3209db4 100644
(file)
--- 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:]))