mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Refactor test
This commit is contained in:
parent
59a62aa7e2
commit
a254fec40e
1 changed files with 1 additions and 2 deletions
|
|
@ -3129,9 +3129,8 @@ def test_uu_invalid(self):
|
|||
self.assertRaises(ValueError, codecs.decode, b"", "uu-codec")
|
||||
|
||||
def test_invalid_error_input(self):
|
||||
# decoders/encoders require errors == 'strict'
|
||||
for encoding in bytes_transform_encodings:
|
||||
with (self.subTest(encoding=encoding)):
|
||||
with self.subTest(encoding=encoding):
|
||||
encoder = codecs.getencoder(encoding)
|
||||
decoder = codecs.getdecoder(encoding)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue