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

Method test_partial

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

Source from the content-addressed store, hash-verified

553 ill_formed_sequence = b"\x80\xdc\x00\x00"
554
555 def test_partial(self):
556 self.check_partial(
557 "\x00\xff\u0100\uffff\U00010000",
558 [
559 "",
560 "",
561 "",
562 "\x00",
563 "\x00",
564 "\x00",
565 "\x00",
566 "\x00\xff",
567 "\x00\xff",
568 "\x00\xff",
569 "\x00\xff",
570 "\x00\xff\u0100",
571 "\x00\xff\u0100",
572 "\x00\xff\u0100",
573 "\x00\xff\u0100",
574 "\x00\xff\u0100\uffff",
575 "\x00\xff\u0100\uffff",
576 "\x00\xff\u0100\uffff",
577 "\x00\xff\u0100\uffff",
578 "\x00\xff\u0100\uffff\U00010000",
579 ]
580 )
581
582 def test_simple(self):
583 self.assertEqual("\U00010203".encode(self.encoding), b"\x03\x02\x01\x00")

Callers

nothing calls this directly

Calls 1

check_partialMethod · 0.80

Tested by

no test coverage detected