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

Class D

Lib/test/test_codeccallbacks.py:989–991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987 self.assertEqual(b"\\uyyyy0".decode("raw-unicode-escape", "test.posreturn"), "<?>0")
988
989 class D(dict):
990 def __getitem__(self, key):
991 raise ValueError
992 self.assertRaises(UnicodeError, codecs.charmap_decode, b"\xff", "strict", {0xff: None})
993 self.assertRaises(ValueError, codecs.charmap_decode, b"\xff", "strict", D())
994 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