Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/4086.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix `test_multiprocessing[fork]` failing on Python 3.15, where `os.fork()` in a multi-threaded process emits a `DeprecationWarning` that the test suite promotes to an error.
15 changes: 12 additions & 3 deletions tests/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1903,9 +1903,18 @@ def _index_array(arr: AnyArray, index: Any) -> Any:
[
pytest.param(
"fork",
marks=pytest.mark.skipif(
sys.platform in ("win32", "darwin"), reason="fork not supported on Windows or OSX"
),
marks=[
pytest.mark.skipif(
sys.platform in ("win32", "darwin"),
reason="fork not supported on Windows or OSX",
),
# Python 3.15 deprecates fork() in multi-threaded processes, and zarr's
# sync event-loop thread is always running here. Fork-safety despite
# those threads is exactly what this test pins down, so keep running it.
pytest.mark.filterwarnings(
r"ignore:This process \(pid=\d+\) is multi-threaded, use of fork\(\):DeprecationWarning"
),
],
),
"spawn",
pytest.param(
Expand Down
Loading