8000 TST Add NRT for n_jobs=-1 to see if this fails in travis · scikit-learn/scikit-learn@6c6c1f9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6c6c1f9

Browse files
committed
TST Add NRT for n_jobs=-1 to see if this fails in travis
1 parent ae483ae commit 6c6c1f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sklearn/model_selection/tests/test_split.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,3 +966,10 @@ def __repr__(self):
966966
return _build_repr(self)
967967

968968
assert_equal(repr(MockSplitter(5, 6)), "MockSplitter(a=5, b=6, c=None)")
969+
970+
971+
def test_cross_val_score_n_jobs():
972+
# n_jobs = -1 seems to hang in older versions of joblib/python2.6
973+
# See issue 5115
974+
cross_val_score(LinearSVC(), digits.data, digits.target, cv=KFold(3),
975+
scoring="precision_macro", n_jobs=-1)

0 commit comments

Comments
 (0)
0