File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
pandas/tests/series/indexing Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 44 datetime ,
55)
66from decimal import Decimal
7+ import os
78
89import numpy as np
910import pytest
1011
1112from pandas ._config import using_string_dtype
1213
13- from pandas .compat import HAS_PYARROW
14+ from pandas .compat import (
15+ HAS_PYARROW ,
16+ WASM ,
17+ )
1418from pandas .compat .numpy import np_version_gte1p24
1519from pandas .errors import IndexingError
1620
@@ -1446,7 +1450,11 @@ def obj(self):
14461450 marks = pytest .mark .xfail (
14471451 (
14481452 not np_version_gte1p24
1449- or (np_version_gte1p24 and np ._get_promotion_state () != "weak" )
1453+ or (
1454+ np_version_gte1p24
1455+ and os .environ .get ("NPY_PROMOTION_STATE" , "weak" ) != "weak"
1456+ )
1457+ or WASM
14501458 ),
14511459 reason = "np.float32(1.1) ends up as 1.100000023841858, so "
14521460 "np_can_hold_element raises and we cast to float64" ,
You can’t perform that action at this time.
0 commit comments