MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_partial

Method test_partial

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

Source from the content-addressed store, hash-verified

598 ill_formed_sequence = b"\x00\x00\xdc\x80"
599
600 def test_partial(self):
601 self.check_partial(
602 "\x00\xff\u0100\uffff\U00010000",
603 [
604 "",
605 "",
606 "",
607 "\x00",
608 "\x00",
609 "\x00",
610 "\x00",
611 "\x00\xff",
612 "\x00\xff",
613 "\x00\xff",
614 "\x00\xff",
615 "\x00\xff\u0100",
616 "\x00\xff\u0100",
617 "\x00\xff\u0100",
618 "\x00\xff\u0100",
619 "\x00\xff\u0100\uffff",
620 "\x00\xff\u0100\uffff",
621 "\x00\xff\u0100\uffff",
622 "\x00\xff\u0100\uffff",
623 "\x00\xff\u0100\uffff\U00010000",
624 ]
625 )
626
627 def test_simple(self):
628 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