TST Ignores PendingDeprecationWarning in tests
@@ -55,6 +55,8 @@ from sklearn.exceptions import NotFittedError, PositiveSpectrumWarning
from sklearn.utils._testing import TempMemmap
+@pytest.mark.filterwarnings(
+ "ignore:the matrix subclass:PendingDeprecationWarning")
def test_as_float_array():
# Test function for as_float_array
X = np.ones((3, 10), dtype=np.int32)
@@ -111,6 +113,8 @@ def test_as_float_array_nan(X):
assert_allclose_dense_sparse(X_converted, X)
+@pytest.mark.filterwarnings(
+ "ignore:the matrix subclass:PendingDeprecationWarning")
def test_np_matrix():
# Confirm that input validation code does not return np.matrix
X = np.arange(12).reshape(3, 4)
