diff MoinMoin/_tests/test_wikiutil.py @ 2546:56dbfbde79fe

better error checking in parameter parser, no more TypeError
author Johannes Berg <johannes AT sipsolutions DOT net>
date Mon, 23 Jul 2007 19:37:36 +0200
parents bc49e37d2649
children c2ef5800253f
line wrap: on
line diff
--- a/MoinMoin/_tests/test_wikiutil.py	Mon Jul 23 19:37:10 2007 +0200
+++ b/MoinMoin/_tests/test_wikiutil.py	Mon Jul 23 19:37:36 2007 +0200
@@ -539,7 +539,7 @@
                        self._test_invoke_int_None, u'""')
         py.test.raises(ValueError, ief, self.request,
                        self._test_invoke_int_None, u'i=""')
-        py.test.raises(TypeError, ief, self.request,
+        py.test.raises(ValueError, ief, self.request,
                        _test_invoke_int_fixed, u'a=7', [7, 8])
         ief(self.request, _test_invoke_int_fixed, u'i=1', [7, 8])
         py.test.raises(ValueError, ief, self.request,