changeset 1880:445818dea4a4

tests: fix wrong formatting argument (needed dict)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 22 Dec 2012 00:44:49 +0100
parents b7241c73c394
children a1edfcdddd34
files MoinMoin/_tests/test_error.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_error.py	Sat Dec 22 00:42:15 2012 +0100
+++ b/MoinMoin/_tests/test_error.py	Sat Dec 22 00:44:49 2012 +0100
@@ -46,7 +46,7 @@
         """ error: access error like a dict """
         test = 'value'
         err = error.Error(test)
-        assert '%(message)s' % err == test
+        assert '%(message)s' % dict(message=err) == test
 
 class TestCompositeError(object):