Skip to content

Commit 7a6ea2f

Browse files
authored
CI Pin numpy 32 bit (#50384)
* xfail * add not is64 to xfail Co-authored-by: MarcoGorelli <>
1 parent 3f41747 commit 7a6ea2f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pandas/compat/numpy/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
np_version_under1p21 = _nlv < Version("1.21")
1010
np_version_under1p22 = _nlv < Version("1.22")
1111
np_version_gte1p22 = _nlv >= Version("1.22")
12+
np_version_gte1p24 = _nlv >= Version("1.24")
1213
is_numpy_dev = _nlv.dev is not None
1314
_min_numpy_ver = "1.20.3"
1415

pandas/tests/series/test_constructors.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
iNaT,
1414
lib,
1515
)
16-
from pandas.compat import is_numpy_dev
16+
from pandas.compat import (
17+
IS64,
18+
is_numpy_dev,
19+
)
20+
from pandas.compat.numpy import np_version_gte1p24
1721
import pandas.util._test_decorators as td
1822

1923
from pandas.core.dtypes.common import (
@@ -732,6 +736,7 @@ def test_constructor_cast(self):
732736
with pytest.raises(ValueError, match=msg):
733737
Series(["a", "b", "c"], dtype=float)
734738

739+
@pytest.mark.xfail(np_version_gte1p24 and not IS64, reason="GH49777")
735740
def test_constructor_signed_int_overflow_deprecation(self):
736741
# GH#41734 disallow silent overflow
737742
msg = "Values are too large to be losslessly cast"

0 commit comments

Comments
 (0)