We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ed9982 commit e5a2067Copy full SHA for e5a2067
pandas/tests/series/indexing/test_setitem.py
@@ -3,10 +3,12 @@
3
datetime,
4
)
5
from decimal import Decimal
6
+import os
7
8
import numpy as np
9
import pytest
10
11
+from pandas.compat import WASM
12
from pandas.compat.numpy import np_version_gte1p24
13
from pandas.errors import IndexingError
14
@@ -1443,7 +1445,11 @@ def obj(self):
1443
1445
marks=pytest.mark.xfail(
1444
1446
(
1447
not np_version_gte1p24
- or (np_version_gte1p24 and np._get_promotion_state() != "weak")
1448
+ or (
1449
+ np_version_gte1p24
1450
+ and os.environ.get("NPY_PROMOTION_STATE", "weak") != "weak"
1451
+ )
1452
+ or WASM
1453
),
1454
reason="np.float32(1.1) ends up as 1.100000023841858, so "
1455
"np_can_hold_element raises and we cast to float64",
0 commit comments