|
1 | 1 | from __future__ import annotations |
2 | 2 |
|
3 | 3 | import os |
| 4 | +import sys |
4 | 5 | import textwrap |
5 | 6 |
|
6 | 7 | import pytest |
@@ -32,16 +33,18 @@ def test_interplay_between_debugging_and_parallel(tmp_path, pdb, n_workers, expe |
32 | 33 | ("n_workers", 1, ExitCode.OK), |
33 | 34 | ("n_workers", 2, ExitCode.OK), |
34 | 35 | ("parallel_backend", "unknown_backend", ExitCode.CONFIGURATION_FAILED), |
35 | | - ] |
36 | | - + [ |
37 | | - ("parallel_backend", parallel_backend, ExitCode.OK) |
38 | | - for parallel_backend in ( |
| 36 | + pytest.param( |
| 37 | + "parallel_backend", |
39 | 38 | ParallelBackend.LOKY, |
40 | | - ParallelBackend.PROCESSES, |
41 | | - ParallelBackend.THREADS, |
42 | | - ) |
43 | | - ] |
44 | | - + [ |
| 39 | + ExitCode.OK, |
| 40 | + marks=pytest.mark.skipif( |
| 41 | + (sys.version_info[:2] == (3, 12) and sys.platform == "win32") |
| 42 | + or (sys.version_info[:2] == (3, 13) and sys.platform == "linux"), |
| 43 | + reason="Deadlock in loky/backend/resource_tracker.py, line 181, maybe related to https://github.com/joblib/loky/pull/450", # noqa: E501 |
| 44 | + ), |
| 45 | + ), |
| 46 | + ("parallel_backend", ParallelBackend.PROCESSES, ExitCode.OK), |
| 47 | + ("parallel_backend", ParallelBackend.THREADS, ExitCode.OK), |
45 | 48 | pytest.param( |
46 | 49 | "parallel_backend", |
47 | 50 | "dask", |
|
0 commit comments