mirror of
https://github.com/python/cpython.git
synced 2024-12-04 07:15:09 +08:00
loosen test now that bytes are allowed
This commit is contained in:
parent
78f7e3a8dc
commit
2f560fa300
@ -113,7 +113,7 @@ class TestBase:
|
||||
return (ret, exc.end)
|
||||
codecs.register_error("test.cjktest", myreplace)
|
||||
|
||||
for ret in ([1, 2, 3], [], None, object(), b'string', b''):
|
||||
for ret in ([1, 2, 3], [], None, object()):
|
||||
self.assertRaises(TypeError, self.encode, self.unmappedunicode,
|
||||
'test.cjktest')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user