Skip to content

Commit 52413d8

Browse files
committed
Change to filterwarnings for windows arm
1 parent 4569d71 commit 52413d8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pandas/tests/extension/test_period.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,11 @@ def check_reduce(self, ser: pd.Series, op_name: str, skipna: bool):
102102
return super().check_reduce(ser, op_name, skipna)
103103

104104
@pytest.mark.parametrize("periods", [1, -2])
105-
def test_diff(self, data, periods):
105+
def test_diff(self, request, data, periods):
106106
if is_platform_windows():
107-
with tm.assert_produces_warning(RuntimeWarning, check_stacklevel=False):
108-
super().test_diff(data, periods)
109-
else:
110-
super().test_diff(data, periods)
107+
# NOTE: No warning on Windows-ARM platforms (in CI)
108+
request.applymarker(pytest.mark.filterwarnings("ignore::RuntimeWarning"))
109+
super().test_diff(data, periods)
111110

112111
@pytest.mark.parametrize("na_action", [None, "ignore"])
113112
def test_map(self, data, na_action):

0 commit comments

Comments
 (0)