diff --git a/pandas/tests/extension/test_sparse.py b/pandas/tests/extension/test_sparse.py index a49e1b4a367fd..b8e042f0599f7 100644 --- a/pandas/tests/extension/test_sparse.py +++ b/pandas/tests/extension/test_sparse.py @@ -226,7 +226,8 @@ def test_fillna_no_op_returns_copy(self, data, request): request.node.add_marker( pytest.mark.xfail(reason="returns array with different fill value") ) - super().test_fillna_no_op_returns_copy(data) + with tm.assert_produces_warning(PerformanceWarning): + super().test_fillna_no_op_returns_copy(data) def test_fillna_series_method(self, data_missing): with tm.assert_produces_warning(PerformanceWarning):