Skip to content

TST: Skip test_rolling_var_numerical_issues on riscv64 platforms #58635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pandas/compat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,18 @@ def is_platform_power() -> bool:
return platform.machine() in ("ppc64", "ppc64le")


def is_platform_riscv64() -> bool:
"""
Checking if the running platform use riscv64 architecture.

Returns
-------
bool
True if the running platform uses riscv64 architecture.
"""
return platform.machine() == "riscv64"


def is_ci_environment() -> bool:
"""
Checking if running in a continuous integration environment by checking
Expand Down
3 changes: 2 additions & 1 deletion pandas/tests/window/test_rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
IS64,
is_platform_arm,
is_platform_power,
is_platform_riscv64,
)

from pandas import (
Expand Down Expand Up @@ -1081,7 +1082,7 @@ def test_rolling_sem(frame_or_series):


@pytest.mark.xfail(
is_platform_arm() or is_platform_power(),
is_platform_arm() or is_platform_power() or is_platform_riscv64(),
reason="GH 38921",
)
@pytest.mark.parametrize(
Expand Down
Loading