File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
pandas/tests/series/indexing Expand file tree Collapse file tree 1 file changed +9
-0
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
14
from pandas .compat import HAS_PYARROW
15
+ from pandas .compat .numpy import np_version_gte1p24
14
16
from pandas .errors import IndexingError
15
17
16
18
from pandas .core .dtypes .common import is_list_like
@@ -1443,6 +1445,13 @@ def obj(self):
1443
1445
np .float32 ,
1444
1446
False ,
1445
1447
marks = pytest .mark .xfail (
1448
+ (
1449
+ not np_version_gte1p24
1450
+ or (
1451
+ np_version_gte1p24
1452
+ and os .environ .get ("NPY_PROMOTION_STATE" , "weak" ) != "weak"
1453
+ )
1454
+ ),
1446
1455
reason = "np.float32(1.1) ends up as 1.100000023841858, so "
1447
1456
"np_can_hold_element raises and we cast to float64" ,
1448
1457
),
You can’t perform that action at this time.
0 commit comments