From: Benjamin Peterson Date: Sun, 18 Jan 2009 21:11:38 +0000 (+0000) Subject: fix test that wasn't working as expected #4990 X-Git-Tag: v2.7a1~2258 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=910f216260b812cff42ab60ed7413a7df1f2a72f;p=thirdparty%2FPython%2Fcpython.git fix test that wasn't working as expected #4990 --- diff --git a/Lib/test/test_codeccallbacks.py b/Lib/test/test_codeccallbacks.py index 656551d7c0fe..db0bc9684d16 100644 --- a/Lib/test/test_codeccallbacks.py +++ b/Lib/test/test_codeccallbacks.py @@ -579,7 +579,7 @@ class CodecCallbackTest(unittest.TestCase): encs = ("ascii", "latin-1", "iso-8859-1", "iso-8859-15") for res in results: - codecs.register_error("test.badhandler", lambda: res) + codecs.register_error("test.badhandler", lambda x: res) for enc in encs: self.assertRaises( TypeError,