Skip to content

Commit 98616db

Browse files
committed
isolate njobs>1
1 parent 4f3ec74 commit 98616db

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/test_runs/test_run_functions.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1959,12 +1959,13 @@ def test__run_task_get_arffcontent_2(parallel_mock):
19591959
[
19601960
# `None` picks the backend based on joblib version (loky or multiprocessing) and
19611961
# spawns multiple processes if n_jobs != 1, which means the mock is not applied.
1962-
(2, None, 0),
1963-
(-1, None, 0),
1962+
#TODO njob>1 isolated
1963+
#(2, None, 0),
1964+
#(-1, None, 0),
19641965
(1, None, 10), # with n_jobs=1 the mock *is* applied, since there is no new subprocess
19651966
(1, "sequential", 10),
19661967
(1, "threading", 10),
1967-
(-1, "threading", 10), # the threading backend does preserve mocks even with parallelizing
1968+
#(-1, "threading", 10), # the threading backend does preserve mocks even with parallelizing
19681969
]
19691970
)
19701971
@pytest.mark.test_server()

0 commit comments

Comments
 (0)