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

Method test_partial

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

Source from the content-addressed store, hash-verified

674 self.assertRaises(UnicodeDecodeError, f.read)
675
676 def test_partial(self):
677 self.check_partial(
678 "\x00\xff\u0100\uffff\U00010000",
679 [
680 "", # first byte of BOM read
681 "", # second byte of BOM read => byteorder known
682 "",
683 "\x00",
684 "\x00",
685 "\x00\xff",
686 "\x00\xff",
687 "\x00\xff\u0100",
688 "\x00\xff\u0100",
689 "\x00\xff\u0100\uffff",
690 "\x00\xff\u0100\uffff",
691 "\x00\xff\u0100\uffff",
692 "\x00\xff\u0100\uffff",
693 "\x00\xff\u0100\uffff\U00010000",
694 ]
695 )
696
697 def test_handlers(self):
698 self.assertEqual(('\ufffd', 1),

Callers

nothing calls this directly

Calls 1

check_partialMethod · 0.80

Tested by

no test coverage detected