The Wayback Machine - https://web.archive.org/web/20250605183259/https://github.com/python/cpython/issues/117694
Skip to content

Improve tests for PyEval_EvalCodeEx #117694

Closed
@serhiy-storchaka

Description

@serhiy-storchaka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixes3.13bugs and security fixestestsTests in the Lib/test dirtopic-C-API

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions