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

Method evaluate

Lib/test/test_annotationlib.py:1422–1425  ·  view source on GitHub ↗
(format, exc=NotImplementedError)

Source from the content-addressed store, hash-verified

1420class TestCallEvaluateFunction(unittest.TestCase):
1421 def test_evaluation(self):
1422 def evaluate(format, exc=NotImplementedError):
1423 if format > 2:
1424 raise exc
1425 return undefined
1426
1427 with self.assertRaises(NameError):
1428 annotationlib.call_evaluate_function(evaluate, Format.VALUE)

Calls

no outgoing calls

Tested by

no test coverage detected