]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-83386: Enable test_hang_gh83386 for ProcessPoolExecutor (GH-152976)
authorGregory P. Smith <68491+gpshead@users.noreply.github.com>
Fri, 3 Jul 2026 21:01:58 +0000 (14:01 -0700)
committerGitHub <noreply@github.com>
Fri, 3 Jul 2026 21:01:58 +0000 (14:01 -0700)
commit548c7314138b85cab3b945a1ce05440dd836a2ea
treef33692ff78e213d5bc7dc88601821fe4ca9e7df8
parentcde31ec135905472f1137dddcc8227af2430d89c
gh-83386: Enable test_hang_gh83386 for ProcessPoolExecutor (GH-152976)

The hang this test guards against (interpreter exit after
shutdown(wait=False) with running futures) was fixed for
ProcessPoolExecutor by the executor management rewrite years ago, but
the test still skipped it citing the issue. The skip also hid a latent
NameError in the subprocess template, which only selects a start method
in the process pool variants; rewrite it to use the same
mp_context=get_context() shape as the sibling templates. Remove a stale
comment claiming ProcessPoolExecutor often hangs with wait=False.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Lib/test/test_concurrent_futures/test_shutdown.py