Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a5f8b65

Browse files
fixup test
1 parent 638cfb8 commit a5f8b65

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sklearn/tests/test_impute.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
from sklearn.utils.testing import assert_allclose
99
from sklearn.utils.testing import assert_allclose_dense_sparse
10-
from sklearn.utils.testing import assert_equal
1110
from sklearn.utils.testing import assert_array_equal
1211
from sklearn.utils.testing import assert_array_almost_equal
1312
from sklearn.utils.testing import assert_false
@@ -66,10 +65,9 @@ def test_imputation_shape():
6665
for strategy in ['mean', 'median', 'most_frequent', "constant"]:
6766
imputer = SimpleImputer(strategy=strategy)
6867
X_imputed = imputer.fit_transform(sparse.csr_matrix(X))
69-
assert_equal(X_imputed.shape, (10, 2))
68+
assert X_imputed.shape == (10, 2)
7069
X_imputed = imputer.fit_transform(X)
71-
assert_equal(X_imputed.shape, (10, 2))
72-
70+
assert X_imputed.shape == (10, 2)
7371

7472

7573
@pytest.mark.parametrize("strategy", ["const", 101, None])

0 commit comments

Comments
 (0)