8000 TST Fixes integer test for train and test indices (#15941) · scikit-learn/scikit-learn@3a5aced · GitHub
[go: up one dir, main page]

Skip to content

Commit 3a5aced

Browse files
scibolthomasjpfan
authored andcommitted
TST Fixes integer test for train and test indices (#15941)
1 parent 1b55e2f commit 3a5aced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/model_selection/tests/test_split.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def test_cross_validator_with_default_params():
175175
# Test that train, test indices returned are integers
176176
for train, test in cv.split(X, y, groups):
177177
assert np.asarray(train).dtype.kind == 'i'
178-
assert np.asarray(train).dtype.kind == 'i'
178+
assert np.asarray(test).dtype.kind == 'i'
179179

180180
# Test if the repr works without any errors
181181
assert cv_repr == repr(cv)

0 commit comments

Comments
 (0)
0