mirror of
https://github.com/python/cpython
synced 2026-11-19 20:24:13 +03:00
On allocation failure, close the remaining live inputs and pop all three
inputs before unwinding, so the consumed argument is not closed twice.
Backport the regression test and regenerate the interpreter files using
the 3.15 cases generator.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| clinic | ||
| complex.c | ||
| interpreter.c | ||
| parts.h | ||
| pytime.c | ||
| README.txt | ||
| set.c | ||
| test_cases.c.h | ||
| test_critical_sections.c | ||
| test_lock.c | ||
| test_targets.h | ||
| testbytecodes.c | ||
| tuple.c | ||
Tests in this directory are compiled into the _testinternalcapi extension. The main file for the extension is Modules/_testinternalcapimodule.c, which calls `_PyTestInternalCapi_Init_*` from these functions. See Modules/_testcapi/README.txt for guideline when writing C test code.