(self)
| 1012 | self.assertEqual(list(txt), ['jkl\n', 'opq\n']) |
| 1013 | |
| 1014 | def test_rawio_write_through(self): |
| 1015 | # Issue #12591: with write_through=True, writes don't need a flush |
| 1016 | raw = self.MockRawIO([b'abc', b'def', b'ghi\njkl\nopq\n']) |
| 1017 | txt = self.TextIOWrapper(raw, encoding='ascii', newline='\n', |
| 1018 | write_through=True) |
| 1019 | txt.write('1') |
| 1020 | txt.write('23\n4') |
| 1021 | txt.write('5') |
| 1022 | self.assertEqual(b''.join(raw._write_stack), b'123\n45') |
| 1023 | |
| 1024 | def test_bufio_write_through(self): |
| 1025 | # Issue #21396: write_through=True doesn't force a flush() |
nothing calls this directly
no test coverage detected