File tree 1 file changed +10
-2
lines changed
pandas/tests/series/indexing
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 4
4
datetime ,
5
5
)
6
6
from decimal import Decimal
7
+ import os
7
8
8
9
import numpy as np
9
10
import pytest
10
11
11
12
from pandas ._config import using_string_dtype
12
13
13
- from pandas .compat import HAS_PYARROW
14
+ from pandas .compat import (
15
+ HAS_PYARROW ,
16
+ WASM ,
17
+ )
14
18
from pandas .compat .numpy import np_version_gte1p24
15
19
from pandas .errors import IndexingError
16
20
@@ -1446,7 +1450,11 @@ def obj(self):
1446
1450
marks = pytest .mark .xfail (
1447
1451
(
1448
1452
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
1450
1458
),
1451
1459
reason = "np.float32(1.1) ends up as 1.100000023841858, so "
1452
1460
"np_can_hold_element raises and we cast to float64" ,
You can’t perform that action at this time.
0 commit comments