8000 TST change name of test such that they are included by pytest in test… · scikit-learn/scikit-learn@c3415b8 · GitHub
[go: up one dir, main page]

Skip to content

Commit c3415b8

Browse files
chkoarqinhanmin2014
authored andcommitted
TST change name of test such that they are included by pytest in test_split (#13299)
1 parent ad39ce5 commit c3415b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sklearn/model_selection/tests/test_split.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ def test_train_test_split():
10971097

10981098

10991099
@ignore_warnings
1100-
def train_test_split_pandas():
1100+
def test_train_test_split_pandas():
11011101
# check train_test_split doesn't destroy pandas dataframe
11021102
types = [MockDataFrame]
11031103
try:
@@ -1113,7 +1113,7 @@ def train_test_split_pandas():
11131113
assert isinstance(X_test, InputFeatureType)
11141114

11151115

1116-
def train_test_split_sparse():
1116+
def test_train_test_split_sparse():
11171117
# check that train_test_split converts scipy sparse matrices
11181118
# to csr, as stated in the documentation
11191119
X = np.arange(100).reshape((10, 10))
@@ -1125,7 +1125,7 @@ def train_test_split_sparse():
11251125
assert isinstance(X_test, csr_matrix)
11261126

11271127

1128-
def train_test_split_mock_pandas():
1128+
def test_train_test_split_mock_pandas():
11291129
# X mock dataframe
11301130
X_df = MockDataFrame(X)
11311131
X_train, X_test = train_test_split(X_df)
@@ -1134,7 +1134,7 @@ def train_test_split_mock_pandas():
11341134
X_train_arr, X_test_arr = train_test_split(X_df)
11351135

11361136

1137-
def train_test_split_list_input():
1137+
def test_train_test_split_list_input():
11381138
# Check that when y is a list / list of string labels, it works.
11391139
X = np.ones(7)
11401140
y1 = ['1'] * 4 + ['0'] * 3

0 commit comments

Comments
 (0)
0