Skip to content

Commit f53435f

Browse files
committed
TST: Skip test_rolling_var_numerical_issues on riscv64 platforms
The test is failing on riscv64. The failure is reproducible under qemu and on real hardware (VisionFive 2). Updates pandas-dev#38921
1 parent 882b228 commit f53435f

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

pandas/compat/__init__.py

+12
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,18 @@ def is_platform_power() -> bool:
122122
return platform.machine() in ("ppc64", "ppc64le")
123123

124124

125+
def is_platform_riscv64() -> bool:
126+
"""
127+
Checking if the running platform use riscv64 architecture.
128+
129+
Returns
130+
-------
131+
bool
132+
True if the running platform uses riscv64 architecture.
133+
"""
134+
return platform.machine() == "riscv64"
135+
136+
125137
def is_ci_environment() -> bool:
126138
"""
127139
Checking if running in a continuous integration environment by checking

pandas/tests/window/test_rolling.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
IS64,
1111
is_platform_arm,
1212
is_platform_power,
13+
is_platform_riscv64,
1314
)
1415

1516
from pandas import (
@@ -1081,7 +1082,7 @@ def test_rolling_sem(frame_or_series):
10811082

10821083

10831084
@pytest.mark.xfail(
1084-
is_platform_arm() or is_platform_power(),
1085+
is_platform_arm() or is_platform_power() or is_platform_riscv64(),
10851086
reason="GH 38921",
10861087
)
10871088
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)