File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff 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+
125137def is_ci_environment () -> bool :
126138 """
127139 Checking if running in a continuous integration environment by checking
Original file line number Diff line number Diff line change 1010 IS64 ,
1111 is_platform_arm ,
1212 is_platform_power ,
13+ is_platform_riscv64 ,
1314)
1415
1516from 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 (
You can’t perform that action at this time.
0 commit comments