Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 38e6022

Browse filesBrowse files
authored
TST Ignores PendingDeprecationWarning in tests (#19301)
1 parent 863c552 commit 38e6022
Copy full SHA for 38e6022

File tree

1 file changed

+4
-0
lines changed
Filter options

1 file changed

+4
-0
lines changed

‎sklearn/utils/tests/test_validation.py

Copy file name to clipboardExpand all lines: sklearn/utils/tests/test_validation.py
+4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.