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

Method test_partial

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

Source from the content-addressed store, hash-verified

2731 self.assertEqual(decode(br"\U00110000", "replace"), ("\ufffd", 10))
2732
2733 def test_partial(self):
2734 self.check_partial(
2735 "\x00\t\n\r\\\xff\uffff\U00010000",
2736 [
2737 '',
2738 '',
2739 '',
2740 '\x00',
2741 '\x00',
2742 '\x00\t',
2743 '\x00\t',
2744 '\x00\t\n',
2745 '\x00\t\n',
2746 '\x00\t\n\r',
2747 '\x00\t\n\r',
2748 '\x00\t\n\r\\',
2749 '\x00\t\n\r\\',
2750 '\x00\t\n\r\\',
2751 '\x00\t\n\r\\',
2752 '\x00\t\n\r\\\xff',
2753 '\x00\t\n\r\\\xff',
2754 '\x00\t\n\r\\\xff',
2755 '\x00\t\n\r\\\xff',
2756 '\x00\t\n\r\\\xff',
2757 '\x00\t\n\r\\\xff',
2758 '\x00\t\n\r\\\xff\uffff',
2759 '\x00\t\n\r\\\xff\uffff',
2760 '\x00\t\n\r\\\xff\uffff',
2761 '\x00\t\n\r\\\xff\uffff',
2762 '\x00\t\n\r\\\xff\uffff',
2763 '\x00\t\n\r\\\xff\uffff',
2764 '\x00\t\n\r\\\xff\uffff',
2765 '\x00\t\n\r\\\xff\uffff',
2766 '\x00\t\n\r\\\xff\uffff',
2767 '\x00\t\n\r\\\xff\uffff',
2768 '\x00\t\n\r\\\xff\uffff\U00010000',
2769 ]
2770 )
2771
2772class RawUnicodeEscapeTest(ReadTest, unittest.TestCase):
2773 encoding = "raw-unicode-escape"

Callers

nothing calls this directly

Calls 1

check_partialMethod · 0.80

Tested by

no test coverage detected