Skip to content

Commit 4ef033f

Browse files
CI: numpy-dev PerformanceWarning (#40264)
1 parent 2e7e3e2 commit 4ef033f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/extension/test_sparse.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ def test_fillna_no_op_returns_copy(self, data, request):
226226
request.node.add_marker(
227227
pytest.mark.xfail(reason="returns array with different fill value")
228228
)
229-
super().test_fillna_no_op_returns_copy(data)
229+
with tm.assert_produces_warning(PerformanceWarning):
230+
super().test_fillna_no_op_returns_copy(data)
230231

231232
def test_fillna_series_method(self, data_missing):
232233
with tm.assert_produces_warning(PerformanceWarning):

0 commit comments

Comments
 (0)