Skip to content

Commit aadb59c

Browse files
committed
BUG: Remove np._get_promotion_state usage
1 parent 160b3eb commit aadb59c

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

.github/workflows/unit-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ jobs:
8686
TEST_ARGS: ${{ matrix.test_args || '' }}
8787
PYTEST_WORKERS: 'auto'
8888
PYTEST_TARGET: ${{ matrix.pytest_target || 'pandas' }}
89-
NPY_PROMOTION_STATE: ${{ matrix.env_file == 'actions-311-numpydev.yaml' && 'weak' || 'legacy' }}
9089
# Clipboard tests
9190
QT_QPA_PLATFORM: offscreen
9291
REMOVE_PYARROW: ${{ matrix.name == 'Future infer strings (without pyarrow)' && '1' || '0' }}

pandas/tests/series/indexing/test_setitem.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from pandas._config import using_string_dtype
1212

1313
from pandas.compat import HAS_PYARROW
14-
from pandas.compat.numpy import np_version_gte1p24
1514
from pandas.errors import IndexingError
1615

1716
from pandas.core.dtypes.common import is_list_like
@@ -1444,10 +1443,6 @@ def obj(self):
14441443
np.float32,
14451444
False,
14461445
marks=pytest.mark.xfail(
1447-
(
1448-
not np_version_gte1p24
1449-
or (np_version_gte1p24 and np._get_promotion_state() != "weak")
1450-
),
14511446
reason="np.float32(1.1) ends up as 1.100000023841858, so "
14521447
"np_can_hold_element raises and we cast to float64",
14531448
),

0 commit comments

Comments
 (0)