Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_codeccallbacks.py @ 50882:5b48d6000916 legacy-trunk
fix test that wasn't working as expected #4990
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sun, 18 Jan 2009 21:11:38 +0000 |
| parents | 454d38c1f47e |
| children | af9b6c43804e |
line wrap: on
line diff
--- a/Lib/test/test_codeccallbacks.py Sun Jan 18 21:04:36 2009 +0000 +++ b/Lib/test/test_codeccallbacks.py Sun Jan 18 21:11:38 2009 +0000 @@ -579,7 +579,7 @@ 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,
