]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-148874: Make sure that mngr.__exit__() is always called in a with statement (GH...
authorMark Shannon <Mark.Shannon@arm.com>
Wed, 1 Jul 2026 14:15:33 +0000 (15:15 +0100)
committerGitHub <noreply@github.com>
Wed, 1 Jul 2026 14:15:33 +0000 (15:15 +0100)
commitc6982439ee0dd11f8014f78205132df0a8a85027
tree2571a30fcccf5cc897dcf489d0113a45e9f46b1b
parentb52bc564513d720fb0c6470871c1f5c24c7ce1d8
GH-148874: Make sure that mngr.__exit__() is always called in a with statement (GH-150911)

* Even if there is an interrupt during the call to mngr.__enter__()
Lib/test/test_with.py
Misc/NEWS.d/next/Core_and_Builtins/2026-06-04-12-53-10.gh-issue-148874.r121cG.rst [new file with mode: 0644]
Modules/_testinternalcapi.c
Modules/_testinternalcapi/test_cases.c.h
Python/bytecodes.c
Python/ceval_macros.h
Python/generated_cases.c.h
Python/optimizer.c
Tools/c-analyzer/cpython/ignored.tsv