From 6ce1f761f3e32762e33dd7560324a3d3cf42056d Mon Sep 17 00:00:00 2001 From: nuno-faria Date: Thu, 4 Jun 2026 12:28:17 +0100 Subject: [PATCH 1/2] fix: Skip fork and forkserver on win32 --- python/tests/test_pickle_multiprocessing.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/python/tests/test_pickle_multiprocessing.py b/python/tests/test_pickle_multiprocessing.py index fcce49d97..2f93ec907 100644 --- a/python/tests/test_pickle_multiprocessing.py +++ b/python/tests/test_pickle_multiprocessing.py @@ -84,11 +84,17 @@ def _skip_if_multiprocessing_unavailable(): pytest.param( "fork", marks=pytest.mark.skipif( - sys.platform == "darwin", - reason="fork start method is unsafe with PyArrow/tokio on macOS", + sys.platform in ("darwin", "win32"), + reason="fork start method is not supported on Windows and unsafe with PyArrow/tokio on macOS", + ), + ), + pytest.param( + "forkserver", + marks=pytest.mark.skipif( + sys.platform == "win32", + reason="forkserver start method is not supported on Windows", ), ), - "forkserver", "spawn", ] From 6b016e61cc592d5ac66efc1b575d157e4a41fbcf Mon Sep 17 00:00:00 2001 From: nuno-faria Date: Thu, 4 Jun 2026 12:40:11 +0100 Subject: [PATCH 2/2] Fix fmt --- python/tests/test_pickle_multiprocessing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/tests/test_pickle_multiprocessing.py b/python/tests/test_pickle_multiprocessing.py index 2f93ec907..c22b52d29 100644 --- a/python/tests/test_pickle_multiprocessing.py +++ b/python/tests/test_pickle_multiprocessing.py @@ -85,7 +85,8 @@ def _skip_if_multiprocessing_unavailable(): "fork", marks=pytest.mark.skipif( sys.platform in ("darwin", "win32"), - reason="fork start method is not supported on Windows and unsafe with PyArrow/tokio on macOS", + reason="fork start method is not supported on Windows " + "and unsafe with PyArrow/tokio on macOS", ), ), pytest.param(