In the discussion for #116637 I noticed that the wrapper for PyEval_EvalCodeEx unnecessary constricts types of some arguments, preventing testing handling of wrong arguments in PyEval_EvalCodeEx.
The proposed PR removes these restrictions and adds many tests for PyEval_EvalCodeEx with different types and values. It also add tests for custom locals, which were not tested before.
Linked PRs
In the discussion for #116637 I noticed that the wrapper for
PyEval_EvalCodeExunnecessary constricts types of some arguments, preventing testing handling of wrong arguments inPyEval_EvalCodeEx.The proposed PR removes these restrictions and adds many tests for
PyEval_EvalCodeExwith different types and values. It also add tests for custom locals, which were not tested before.Linked PRs