2
2
datetime ,
3
3
timedelta ,
4
4
)
5
+ import platform
5
6
import sys
6
7
7
8
import numpy as np
@@ -1082,12 +1083,14 @@ def test_rolling_sem(frame_or_series):
1082
1083
tm .assert_series_equal (result , expected )
1083
1084
1084
1085
1085
- @pytest .mark .xfail (
1086
+ @pytest .mark .skipif (
1086
1087
is_platform_arm ()
1087
1088
or is_platform_power ()
1088
1089
or is_platform_riscv64 ()
1089
- or sys .platform == "emscripten" ,
1090
- reason = "GH 38921: known numerical instability on 32-bit platforms or Pyodide" ,
1090
+ or platform .architecture ()[0 ] == "32bit"
1091
+ or sys .platform in ("emscripten" , "wasm" ),
1092
+ reason = "GH 38921: skipped due to known numerical instability on 32-bit or "
1093
+ "WebAssembly platforms (Pyodide)" ,
1091
1094
)
1092
1095
@pytest .mark .parametrize (
1093
1096
("func" , "third_value" , "values" ),
@@ -1103,7 +1106,7 @@ def test_rolling_var_numerical_issues(func, third_value, values):
1103
1106
ds = Series ([99999999999999999 , 1 , third_value , 2 , 3 , 1 , 1 ])
1104
1107
result = getattr (ds .rolling (2 ), func )()
1105
1108
expected = Series ([np .nan ] + values )
1106
- tm .assert_almost_equal (result [1 :].values , expected [1 :].values , rtol = 1e-2 , atol = 1e-5 )
1109
+ tm .assert_almost_equal (result [1 :].values , expected [1 :].values , rtol = 1e-3 , atol = 1e-6 )
1107
1110
1108
1111
1109
1112
def test_timeoffset_as_window_parameter_for_corr (unit ):
0 commit comments