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

Method test_partial

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

Source from the content-addressed store, hash-verified

2823 self.assertEqual(decode(br"\U00110000", "replace"), ("\ufffd", 10))
2824
2825 def test_partial(self):
2826 self.check_partial(
2827 "\x00\t\n\r\\\xff\uffff\U00010000",
2828 [
2829 '\x00',
2830 '\x00\t',
2831 '\x00\t\n',
2832 '\x00\t\n\r',
2833 '\x00\t\n\r',
2834 '\x00\t\n\r\\\xff',
2835 '\x00\t\n\r\\\xff',
2836 '\x00\t\n\r\\\xff',
2837 '\x00\t\n\r\\\xff',
2838 '\x00\t\n\r\\\xff',
2839 '\x00\t\n\r\\\xff',
2840 '\x00\t\n\r\\\xff\uffff',
2841 '\x00\t\n\r\\\xff\uffff',
2842 '\x00\t\n\r\\\xff\uffff',
2843 '\x00\t\n\r\\\xff\uffff',
2844 '\x00\t\n\r\\\xff\uffff',
2845 '\x00\t\n\r\\\xff\uffff',
2846 '\x00\t\n\r\\\xff\uffff',
2847 '\x00\t\n\r\\\xff\uffff',
2848 '\x00\t\n\r\\\xff\uffff',
2849 '\x00\t\n\r\\\xff\uffff',
2850 '\x00\t\n\r\\\xff\uffff\U00010000',
2851 ]
2852 )
2853
2854
2855class EscapeEncodeTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

check_partialMethod · 0.80

Tested by

no test coverage detected