(self)
| 1894 | self.assertEqual(bufio.write(b''), 0) |
| 1895 | |
| 1896 | def test_detach_flush(self): |
| 1897 | raw = self.MockRawIO() |
| 1898 | buf = self.tp(raw) |
| 1899 | buf.write(b"howdy!") |
| 1900 | self.assertFalse(raw._write_stack) |
| 1901 | buf.detach() |
| 1902 | self.assertEqual(raw._write_stack, [b"howdy!"]) |
| 1903 | |
| 1904 | def test_write(self): |
| 1905 | # Write to the buffered IO but don't overflow the buffer. |
nothing calls this directly
no test coverage detected