Skip to content

Commit 104ebcf

Browse files
author
MarcoGorelli
committed
xfail
1 parent 3f41747 commit 104ebcf

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
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

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
lib,
1515
)
1616
from pandas.compat import is_numpy_dev
17+
from pandas.compat.numpy import np_version_gte1p24
1718
import pandas.util._test_decorators as td
1819

1920
from pandas.core.dtypes.common import (
@@ -732,6 +733,7 @@ def test_constructor_cast(self):
732733
with pytest.raises(ValueError, match=msg):
733734
Series(["a", "b", "c"], dtype=float)
734735

736+
@pytest.mark.xfail(np_version_gte1p24, reason="GH49777")
735737
def test_constructor_signed_int_overflow_deprecation(self):
736738
# GH#41734 disallow silent overflow
737739
msg = "Values are too large to be losslessly cast"

0 commit comments

Comments
 (0)