(self)
| 3829 | self.assertEqual("ok", out.decode().strip()) |
| 3830 | |
| 3831 | def test_read_byteslike(self): |
| 3832 | r = MemviewBytesIO(b'Just some random string\n') |
| 3833 | t = self.TextIOWrapper(r, 'utf-8') |
| 3834 | |
| 3835 | # TextIOwrapper will not read the full string, because |
| 3836 | # we truncate it to a multiple of the native int size |
| 3837 | # so that we can construct a more complex memoryview. |
| 3838 | bytes_val = _to_memoryview(r.getvalue()).tobytes() |
| 3839 | |
| 3840 | self.assertEqual(t.read(200), bytes_val.decode('utf-8')) |
| 3841 | |
| 3842 | def test_issue22849(self): |
| 3843 | class F(object): |
nothing calls this directly
no test coverage detected