From f207176940ee03288f87f977c273e0c8a0bc555c Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Tue, 28 May 2019 16:10:56 -0500 Subject: [PATCH] MAINT: use explicit value of n_jobs to avoid hangs on Windows --- sklearn/model_selection/tests/test_search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sklearn/model_selection/tests/test_search.py b/sklearn/model_selection/tests/test_search.py index 8e48a26194008..1a8f90709c1ea 100644 --- a/sklearn/model_selection/tests/test_search.py +++ b/sklearn/model_selection/tests/test_search.py @@ -1757,7 +1757,7 @@ def test_empty_cv_iterator_error(): train_size = 100 ridge = RandomizedSearchCV(Ridge(), {'alpha': [1e-3, 1e-2, 1e-1]}, - cv=cv, n_jobs=-1) + cv=cv, n_jobs=4) # assert that this raises an error with pytest.raises(ValueError, @@ -1779,7 +1779,7 @@ def get_n_splits(self, *args, **kw): train_size = 100 ridge = RandomizedSearchCV(Ridge(), {'alpha': [1e-3, 1e-2, 1e-1]}, - cv=cv, n_jobs=-1) + cv=cv, n_jobs=4) # assert that this raises an error with pytest.raises(ValueError,