Refactor test

This commit is contained in:
Stan Ulbrych 2025-07-24 14:25:06 +02:00
parent 59a62aa7e2
commit a254fec40e
No known key found for this signature in database
GPG key ID: B8E58DBDB2A1A0B8

View file

@ -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)