(self)
| 675 | self.assertRaises(UnicodeDecodeError, f.read) |
| 676 | |
| 677 | def test_partial(self): |
| 678 | self.check_partial( |
| 679 | "\x00\xff\u0100\uffff\U00010000", |
| 680 | [ |
| 681 | "", # first byte of BOM read |
| 682 | "", # second byte of BOM read => byteorder known |
| 683 | "", |
| 684 | "\x00", |
| 685 | "\x00", |
| 686 | "\x00\xff", |
| 687 | "\x00\xff", |
| 688 | "\x00\xff\u0100", |
| 689 | "\x00\xff\u0100", |
| 690 | "\x00\xff\u0100\uffff", |
| 691 | "\x00\xff\u0100\uffff", |
| 692 | "\x00\xff\u0100\uffff", |
| 693 | "\x00\xff\u0100\uffff", |
| 694 | "\x00\xff\u0100\uffff\U00010000", |
| 695 | ] |
| 696 | ) |
| 697 | |
| 698 | def test_handlers(self): |
| 699 | self.assertEqual(('\ufffd', 1), |
nothing calls this directly
no test coverage detected