(self)
| 3027 | self.assertEqual(sout, b"\x80") |
| 3028 | |
| 3029 | def test_readline(self): |
| 3030 | for encoding in bytes_transform_encodings: |
| 3031 | with self.subTest(encoding=encoding): |
| 3032 | sin = codecs.encode(b"\x80", encoding) |
| 3033 | reader = codecs.getreader(encoding)(io.BytesIO(sin)) |
| 3034 | sout = reader.readline() |
| 3035 | self.assertEqual(sout, b"\x80") |
| 3036 | |
| 3037 | def test_buffer_api_usage(self): |
| 3038 | # We check all the transform codecs accept memoryview input |
nothing calls this directly
no test coverage detected