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

Method test_escape_decode

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

Source from the content-addressed store, hash-verified

2798 check('\U0001d120', br'\U0001d120')
2799
2800 def test_escape_decode(self):
2801 decode = codecs.raw_unicode_escape_decode
2802 check = coding_checker(self, decode)
2803 for b in range(256):
2804 if b not in b'uU':
2805 check(b'\\' + bytes([b]), '\\' + chr(b))
2806 check(br"\u20ac", "\u20ac")
2807 check(br"\U0001d120", "\U0001d120")
2808
2809 def test_decode_errors(self):
2810 decode = codecs.raw_unicode_escape_decode

Callers

nothing calls this directly

Calls 2

coding_checkerFunction · 0.85
checkFunction · 0.70

Tested by

no test coverage detected