Skip to content

Commit 7ea7284

Browse files
oleksandr-pavlykjnothman
authored andcommitted
MAINT: use explicit value of n_jobs to avoid hangs on Windows (scikit-learn#13970)
1 parent 54e6c72 commit 7ea7284

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/model_selection/tests/test_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ def test_empty_cv_iterator_error():
17571757

17581758
train_size = 100
17591759
ridge = RandomizedSearchCV(Ridge(), {'alpha': [1e-3, 1e-2, 1e-1]},
1760-
cv=cv, n_jobs=-1)
1760+
cv=cv, n_jobs=4)
17611761

17621762
# assert that this raises an error
17631763
with pytest.raises(ValueError,
@@ -1779,7 +1779,7 @@ def get_n_splits(self, *args, **kw):
17791779

17801780
train_size = 100
17811781
ridge = RandomizedSearchCV(Ridge(), {'alpha': [1e-3, 1e-2, 1e-1]},
1782-
cv=cv, n_jobs=-1)
1782+
cv=cv, n_jobs=4)
17831783

17841784
# assert that this raises an error
17851785
with pytest.raises(ValueError,

0 commit comments

Comments
 (0)