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

Method evaluate

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

Source from the content-addressed store, hash-verified

1395class TestCallEvaluateFunction(unittest.TestCase):
1396 def test_evaluation(self):
1397 def evaluate(format, exc=NotImplementedError):
1398 if format > 2:
1399 raise exc
1400 return undefined
1401
1402 with self.assertRaises(NameError):
1403 annotationlib.call_evaluate_function(evaluate, Format.VALUE)

Calls

no outgoing calls

Tested by

no test coverage detected