Skip to content

Commit e0482bf

Browse files
committed
Just use mark.filterwarnings
1 parent c907edd commit e0482bf

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

pandas/tests/extension/test_period.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
Period,
2626
iNaT,
2727
)
28-
from pandas.compat import is_platform_windows
2928

3029
from pandas.core.dtypes.dtypes import PeriodDtype
3130

@@ -102,10 +101,9 @@ def check_reduce(self, ser: pd.Series, op_name: str, skipna: bool):
102101
return super().check_reduce(ser, op_name, skipna)
103102

104103
@pytest.mark.parametrize("periods", [1, -2])
104+
# NOTE: RuntimeWarning on Windows(non-ARM) platforms (in CI)
105+
@pytest.mark.filterwarnings("ignore::RuntimeWarning")
105106
def test_diff(self, request, data, periods):
106-
if is_platform_windows():
107-
# NOTE: No warning on Windows-ARM platforms (in CI)
108-
request.applymarker(pytest.mark.filterwarnings("ignore::RuntimeWarning"))
109107
super().test_diff(data, periods)
110108

111109
@pytest.mark.parametrize("na_action", [None, "ignore"])

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ select = "*pyodide*"
190190
test-requires = "pytest>=7.3.2 hypothesis>=6.84.0"
191191
# Pyodide repairs wheels on its own, using auditwheel-emscripten
192192
repair-wheel-command = ""
193-
# meson-python: error: Unknown option "-vv"
193+
# https://github.com/pyodide/pyodide/issues/5805
194194
build-verbosity = 1
195195
test-command = """
196196
PANDAS_CI='1' python -c 'import pandas as pd; \

0 commit comments

Comments
 (0)