mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
fix test that wasn't working as expected #4990
This commit is contained in:
parent
438195fc11
commit
910f216260
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue