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

Skip to content

Commit 11d2c38

Browse files
scibolPan Jan
authored andcommitted
TST Fixes integer test for train and test indices (scikit-learn#15941)
1 parent b3135e3 commit 11d2c38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/model_selection/tests/test_split.py

Lines changed: 1 addition & 1 deletion
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