Skip to content

[3.14] gh-83386: Enable test_hang_gh83386 for ProcessPoolExecutor (GH-152976)#152983

Merged
gpshead merged 1 commit into
python:3.14from
miss-islington:backport-548c731-3.14
Jul 4, 2026
Merged

[3.14] gh-83386: Enable test_hang_gh83386 for ProcessPoolExecutor (GH-152976)#152983
gpshead merged 1 commit into
python:3.14from
miss-islington:backport-548c731-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

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.
(cherry picked from commit 548c731)

Co-authored-by: Gregory P. Smith 68491+gpshead@users.noreply.github.com
Co-authored-by: Claude Fable 5 noreply@anthropic.com

…honGH-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.
(cherry picked from commit 548c731)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jul 3, 2026
@gpshead gpshead self-assigned this Jul 3, 2026
@gpshead gpshead enabled auto-merge (squash) July 4, 2026 03:22
@gpshead gpshead merged commit 058a5c6 into python:3.14 Jul 4, 2026
86 of 88 checks passed
@miss-islington miss-islington deleted the backport-548c731-3.14 branch July 4, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants