(self)
| 1486 | self.assertEqual(b"abc", bufio.read()) |
| 1487 | |
| 1488 | def test_uninitialized(self): |
| 1489 | bufio = self.tp.__new__(self.tp) |
| 1490 | del bufio |
| 1491 | bufio = self.tp.__new__(self.tp) |
| 1492 | self.assertRaisesRegex((ValueError, AttributeError), |
| 1493 | 'uninitialized|has no attribute', |
| 1494 | bufio.read, 0) |
| 1495 | bufio.__init__(self.MockRawIO()) |
| 1496 | self.assertEqual(bufio.read(0), b'') |
| 1497 | |
| 1498 | def test_read(self): |
| 1499 | for arg in (None, 7): |
nothing calls this directly
no test coverage detected