diff options
Diffstat (limited to 'Lib/test/test_codeccallbacks.py')
-rw-r--r-- | Lib/test/test_codeccallbacks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_codeccallbacks.py b/Lib/test/test_codeccallbacks.py index 656551d..db0bc96 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, |