(self)
| 3016 | self.assertEqual(sout, b"\x80") |
| 3017 | |
| 3018 | def test_readline(self): |
| 3019 | for encoding in bytes_transform_encodings: |
| 3020 | with self.subTest(encoding=encoding): |
| 3021 | sin = codecs.encode(b"\x80", encoding) |
| 3022 | reader = codecs.getreader(encoding)(io.BytesIO(sin)) |
| 3023 | sout = reader.readline() |
| 3024 | self.assertEqual(sout, b"\x80") |
| 3025 | |
| 3026 | def test_buffer_api_usage(self): |
| 3027 | # We check all the transform codecs accept memoryview input |
nothing calls this directly
no test coverage detected