]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-152132: Test Py_CompileString() in test_capi.test_run (#153470)
authorVictor Stinner <vstinner@python.org>
Fri, 10 Jul 2026 01:36:31 +0000 (03:36 +0200)
committerGitHub <noreply@github.com>
Fri, 10 Jul 2026 01:36:31 +0000 (03:36 +0200)
commitd83d26724b8c3be5f535e56ded88593cc6803b86
treef1d064e57275810319ebfd6c41a46e07ee7c8c92
parent1b41c7b722b77d9c02c670edd322b088860c00ba
gh-152132: Test Py_CompileString() in test_capi.test_run (#153470)

PyRun functions now raises ValueError if the start argument is
invalid.

* Add Modules/_testlimitedcapi/run.c.
* Rename _Py_CompileStringObjectWithModule() to
  _Py_CompileStringObject().
12 files changed:
Include/cpython/pythonrun.h
Include/internal/pycore_pythonrun.h
Lib/test/test_capi/test_run.py
Modules/Setup.stdlib.in
Modules/_testcapi/run.c
Modules/_testlimitedcapi.c
Modules/_testlimitedcapi/parts.h
Modules/_testlimitedcapi/run.c [new file with mode: 0644]
PCbuild/_testlimitedcapi.vcxproj
PCbuild/_testlimitedcapi.vcxproj.filters
Python/bltinmodule.c
Python/pythonrun.c