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

Class X

Lib/test/test_builtin.py:782–784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

780 self.assertRaises(SyntaxError, eval, bom[:2] + b'a')
781
782 class X:
783 def __getitem__(self, key):
784 raise ValueError
785 self.assertRaises(ValueError, eval, "foo", {}, X())
786
787 def test_eval_frozendict(self):

Callers 4

test_evalMethod · 0.70
test_hashMethod · 0.70
__getattribute__Method · 0.70
test_input_gh130163Method · 0.70

Calls

no outgoing calls

Tested by 4

test_evalMethod · 0.56
test_hashMethod · 0.56
__getattribute__Method · 0.56
test_input_gh130163Method · 0.56