Files
cpython/Modules
Serhiy StorchakaandClaude Opus 5 10b2d12431 gh-157429: Make test_detach_materialized_dict_no_memory deterministic (GH-157444)
Add _testcapi.call_with_nomemory() which arms the allocation failure,
calls a function and removes the memory hooks without executing any
bytecode in between, so that pending work at the eval breaker (GC,
deferred frees on free-threading builds) cannot consume the failing
allocation.

The test now drops the last reference from C with this helper, accepts
only the unraisable exception reported while clearing the managed dict,
and no longer needs to run in a subprocess.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-28 15:47:13 +00:00
..
2023-05-22 06:14:48 +05:30
…

Source files for standard library extension modules,
and former extension modules that are now builtin modules.