Skip to content

[3.15] gh-83386: Enable test_hang_gh83386 for ProcessPoolExecutor (GH-152976)#152982

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

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

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 enabled auto-merge (squash) July 3, 2026 21:02
@gpshead gpshead merged commit 8d08232 into python:3.15 Jul 3, 2026
56 checks passed
@miss-islington miss-islington deleted the backport-548c731-3.15 branch July 3, 2026 21:32
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