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

Class E

Lib/test/test_dict.py:848–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846 self.assertEqual(d[2], 42)
847
848 class E(dict):
849 def __missing__(self, key):
850 raise RuntimeError(key)
851 e = E()
852 with self.assertRaises(RuntimeError) as c:
853 e[42]

Callers 1

test_missingMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_missingMethod · 0.56