MCPcopy Index your code
hub / github.com/python/cpython / test_partial

Method test_partial

Lib/test/test_codecs.py:677–696  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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),

Callers

nothing calls this directly

Calls 1

check_partialMethod · 0.80

Tested by

no test coverage detected