(self)
| 1772 | self.assertRaises(ValueError, b.seek, 0) |
| 1773 | |
| 1774 | def test_truncate_on_read_only(self): |
| 1775 | rawio = self.MockFileIO(b"abc") |
| 1776 | bufio = self.tp(rawio) |
| 1777 | self.assertFalse(bufio.writable()) |
| 1778 | self.assertRaises(self.UnsupportedOperation, bufio.truncate) |
| 1779 | self.assertRaises(self.UnsupportedOperation, bufio.truncate, 0) |
| 1780 | |
| 1781 | def test_tell_character_device_file(self): |
| 1782 | # GH-95782 |
nothing calls this directly
no test coverage detected