Skip to content

Commit abea7de

Browse files
author
William de Vazelhes
committed
FIX minor corrections
- remove unusual s to test functions - remove redundant parenthesis
1 parent e209b21 commit abea7de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_mahalanobis_mixin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def build_pairs():
3131
X, pairs = build_data()
3232
pairs, y = wrap_pairs(X, pairs)
3333
pairs, y = shuffle(pairs, y)
34-
return (pairs, y)
34+
return pairs, y
3535

3636

3737
def build_quadruplets():
@@ -41,7 +41,7 @@ def build_quadruplets():
4141
c = np.column_stack(pairs)
4242
quadruplets = X[c]
4343
quadruplets = shuffle(quadruplets)
44-
return (quadruplets, None)
44+
return quadruplets, None
4545

4646

4747
list_estimators = [(Covariance(), build_data),
@@ -122,7 +122,7 @@ def test_score_pairs_finite(estimator, build_dataset):
122122

123123
@pytest.mark.parametrize('estimator, build_dataset', list_estimators,
124124
ids=ids_estimators)
125-
def tests_score_pairs_dim(estimator, build_dataset):
125+
def test_score_pairs_dim(estimator, build_dataset):
126126
# scoring of 3D arrays should return 1D array (several tuples),
127127
# and scoring of 2D arrays (one tuple) should return a scalar (0D array).
128128
inputs, labels = build_dataset()
@@ -162,7 +162,7 @@ def test_embed_toy_example(estimator, build_dataset):
162162

163163
@pytest.mark.parametrize('estimator, build_dataset', list_estimators,
164164
ids=ids_estimators)
165-
def tests_embed_dim(estimator, build_dataset):
165+
def test_embed_dim(estimator, build_dataset):
166166
# Checks that the the dimension of the output space is as expected
167167
inputs, labels = build_dataset()
168168
model = clone(estimator)

0 commit comments

Comments
 (0)