Skip to content

gh-154272: Skip forkserver tests when the start method is unavailable#154274

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:forkserver-skip-unavailable
Open

gh-154272: Skip forkserver tests when the start method is unavailable#154274
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:forkserver-skip-unavailable

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 20, 2026

Copy link
Copy Markdown
Member

On platforms where forkserver is unavailable ('forkserver' not in multiprocessing.get_all_start_methods()), some tests error instead of skipping: concurrent_futures ProcessPoolForkserver* (via get_context('forkserver')ValueError), test_init's test_forkserver, and test_multiprocessing_forkserver.test_preload (direct get_context in setUp). Guard the forkserver test package in its __init__.py and add get_all_start_methods() checks to the concurrent_futures mixin and test_forkserver.

Related: GH-154271 (makes forkserver available on Solaris/illumos; this is the independent test fix).

🤖 Generated with Claude Code

…ilable

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes skip news tests Tests in the Lib/test dir topic-multiprocessing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant