(self)
| 491 | self.assertRaises(UnicodeDecodeError, f.read) |
| 492 | |
| 493 | def test_partial(self): |
| 494 | self.check_partial( |
| 495 | "\x00\xff\u0100\uffff\U00010000", |
| 496 | [ |
| 497 | "", # first byte of BOM read |
| 498 | "", # second byte of BOM read |
| 499 | "", # third byte of BOM read |
| 500 | "", # fourth byte of BOM read => byteorder known |
| 501 | "", |
| 502 | "", |
| 503 | "", |
| 504 | "\x00", |
| 505 | "\x00", |
| 506 | "\x00", |
| 507 | "\x00", |
| 508 | "\x00\xff", |
| 509 | "\x00\xff", |
| 510 | "\x00\xff", |
| 511 | "\x00\xff", |
| 512 | "\x00\xff\u0100", |
| 513 | "\x00\xff\u0100", |
| 514 | "\x00\xff\u0100", |
| 515 | "\x00\xff\u0100", |
| 516 | "\x00\xff\u0100\uffff", |
| 517 | "\x00\xff\u0100\uffff", |
| 518 | "\x00\xff\u0100\uffff", |
| 519 | "\x00\xff\u0100\uffff", |
| 520 | "\x00\xff\u0100\uffff\U00010000", |
| 521 | ] |
| 522 | ) |
| 523 | |
| 524 | def test_handlers(self): |
| 525 | self.assertEqual(('\ufffd', 1), |
nothing calls this directly
no test coverage detected