Skip to content

gh-149879: Fix multiprocessing tests on Cygwin#150031

Merged
vstinner merged 2 commits into
python:mainfrom
vstinner:mp_cygwin2
May 18, 2026
Merged

gh-149879: Fix multiprocessing tests on Cygwin#150031
vstinner merged 2 commits into
python:mainfrom
vstinner:mp_cygwin2

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented May 18, 2026

  • Disable AF_UNIX connection family on Cygwin.
  • forkserver start method is not available on Cygwin: update tests for that.

* Disable AF_UNIX connection family on Cygwin.
* forkserver start method is not available on Cygwin: update tests
  for that.
@vstinner
Copy link
Copy Markdown
Member Author

4 tests are still failing and require more investigation (they can be fixed in a separated PR):

test_multiprocessing_fork.test_processes
    test_wait_result
test_multiprocessing_spawn.test_processes
    test_wait_result
test_multiprocessing_fork.test_misc
    test_resource_tracker_sigterm
test_multiprocessing_spawn.test_misc
    test_resource_tracker_sigterm

The forkserver start method requires multiprocessing.reduction.HAVE_SEND_HANDLE which is False on Cygwin. Maybe we can support forkserver if the _winapi extension becomes available on Cygwin.

@vstinner vstinner requested a review from vsajip as a code owner May 18, 2026 22:12
@vstinner vstinner merged commit 9eb50a4 into python:main May 18, 2026
49 checks passed
@vstinner vstinner deleted the mp_cygwin2 branch May 18, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant