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

Method test_partial

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

Source from the content-addressed store, hash-verified

599 ill_formed_sequence = b"\x00\x00\xdc\x80"
600
601 def test_partial(self):
602 self.check_partial(
603 "\x00\xff\u0100\uffff\U00010000",
604 [
605 "",
606 "",
607 "",
608 "\x00",
609 "\x00",
610 "\x00",
611 "\x00",
612 "\x00\xff",
613 "\x00\xff",
614 "\x00\xff",
615 "\x00\xff",
616 "\x00\xff\u0100",
617 "\x00\xff\u0100",
618 "\x00\xff\u0100",
619 "\x00\xff\u0100",
620 "\x00\xff\u0100\uffff",
621 "\x00\xff\u0100\uffff",
622 "\x00\xff\u0100\uffff",
623 "\x00\xff\u0100\uffff",
624 "\x00\xff\u0100\uffff\U00010000",
625 ]
626 )
627
628 def test_simple(self):
629 self.assertEqual("\U00010203".encode(self.encoding), b"\x00\x01\x02\x03")

Callers

nothing calls this directly

Calls 1

check_partialMethod · 0.80

Tested by

no test coverage detected