Skip to content

Commit 38e6022

Browse files
authored
TST Ignores PendingDeprecationWarning in tests (scikit-learn#19301)
1 parent 863c552 commit 38e6022

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sklearn/utils/tests/test_validation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
from sklearn.utils._testing import TempMemmap
5656

5757

58+
@pytest.mark.filterwarnings(
59+
"ignore:the matrix subclass:PendingDeprecationWarning")
5860
def test_as_float_array():
5961
# Test function for as_float_array
6062
X = np.ones((3, 10), dtype=np.int32)
@@ -111,6 +113,8 @@ def test_as_float_array_nan(X):
111113
assert_allclose_dense_sparse(X_converted, X)
112114

113115

116+
@pytest.mark.filterwarnings(
117+
"ignore:the matrix subclass:PendingDeprecationWarning")
114118
def test_np_matrix():
115119
# Confirm that input validation code does not return np.matrix
116120
X = np.arange(12).reshape(3, 4)

0 commit comments

Comments
 (0)