From 08672633bc7ebb6178db84aad1838bff8032de1c Mon Sep 17 00:00:00 2001 From: Ali McMaster Date: Tue, 9 Nov 2021 01:17:50 +0000 Subject: [PATCH] Backport PR #44362: CI: xfail tests failing on numpy dev --- pandas/core/arrays/sparse/scipy_sparse.py | 2 +- pandas/tests/arrays/sparse/test_array.py | 2 +- pandas/tests/window/moments/test_moments_rolling.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pandas/core/arrays/sparse/scipy_sparse.py b/pandas/core/arrays/sparse/scipy_sparse.py index 7ebda1f17ba56..ef53034580112 100644 --- a/pandas/core/arrays/sparse/scipy_sparse.py +++ b/pandas/core/arrays/sparse/scipy_sparse.py @@ -122,7 +122,7 @@ def coo_to_sparse_series(A, dense_index: bool = False): Parameters ---------- - A : scipy.sparse.coo.coo_matrix + A : scipy.sparse.coo_matrix dense_index : bool, default False Returns diff --git a/pandas/tests/arrays/sparse/test_array.py b/pandas/tests/arrays/sparse/test_array.py index 1cc8a2df44812..181e01233b8e0 100644 --- a/pandas/tests/arrays/sparse/test_array.py +++ b/pandas/tests/arrays/sparse/test_array.py @@ -1204,7 +1204,7 @@ def test_to_coo(self): dtype="Sparse[int]", ) A, _, _ = ser.sparse.to_coo() - assert isinstance(A, scipy.sparse.coo.coo_matrix) + assert isinstance(A, scipy.sparse.coo_matrix) def test_non_sparse_raises(self): ser = pd.Series([1, 2, 3]) diff --git a/pandas/tests/window/moments/test_moments_rolling.py b/pandas/tests/window/moments/test_moments_rolling.py index b2e53a676b039..66b52da0f5578 100644 --- a/pandas/tests/window/moments/test_moments_rolling.py +++ b/pandas/tests/window/moments/test_moments_rolling.py @@ -558,6 +558,7 @@ def test_rolling_quantile_np_percentile(): tm.assert_almost_equal(df_quantile.values, np.array(np_percentile)) +@pytest.mark.xfail(reason="GH#44343", strict=False) @pytest.mark.parametrize("quantile", [0.0, 0.1, 0.45, 0.5, 1]) @pytest.mark.parametrize( "interpolation", ["linear", "lower", "higher", "nearest", "midpoint"]