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

Class D

Lib/test/test_codeccallbacks.py:980–982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

978 self.assertEqual(b"\\uyyyy0".decode("raw-unicode-escape", "test.posreturn"), "<?>0")
979
980 class D(dict):
981 def __getitem__(self, key):
982 raise ValueError
983 self.assertRaises(UnicodeError, codecs.charmap_decode, b"\xff", "strict", {0xff: None})
984 self.assertRaises(ValueError, codecs.charmap_decode, b"\xff", "strict", D())
985 self.assertRaises(TypeError, codecs.charmap_decode, b"\xff", "strict", {0xff: sys.maxunicode+1})

Callers 2

test_decodehelperMethod · 0.70
test_encodehelperMethod · 0.70

Calls

no outgoing calls

Tested by 2

test_decodehelperMethod · 0.56
test_encodehelperMethod · 0.56