Skip to content

Commit 5a9142e

Browse files
authored
TST: Skip test_rolling_var_numerical_issues on power platforms (#50349)
1 parent dd8b721 commit 5a9142e

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

pandas/compat/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,18 @@ def is_platform_arm() -> bool:
106106
)
107107

108108

109+
def is_platform_power() -> bool:
110+
"""
111+
Checking if the running platform use Power architecture.
112+
113+
Returns
114+
-------
115+
bool
116+
True if the running platform uses ARM architecture.
117+
"""
118+
return platform.machine() in ("ppc64", "ppc64le")
119+
120+
109121
def is_ci_environment() -> bool:
110122
"""
111123
Checking if running in a continuous integration environment by checking

pandas/tests/window/test_rolling.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from pandas.compat import (
1010
is_platform_arm,
1111
is_platform_mac,
12+
is_platform_power,
1213
)
1314

1415
from pandas import (
@@ -1170,7 +1171,10 @@ def test_rolling_sem(frame_or_series):
11701171
tm.assert_series_equal(result, expected)
11711172

11721173

1173-
@pytest.mark.xfail(is_platform_arm() and not is_platform_mac(), reason="GH 38921")
1174+
@pytest.mark.xfail(
1175+
(is_platform_arm() and not is_platform_mac()) or is_platform_power(),
1176+
reason="GH 38921",
1177+
)
11741178
@pytest.mark.parametrize(
11751179
("func", "third_value", "values"),
11761180
[

0 commit comments

Comments
 (0)