Skip to content

Commit 8c7b0b2

Browse files
authored
TST/CI: xfail test_round_sanity for 32 bit (#47803)
* TST/CI: xfail test_round_sanity for 32 bit * xfail generally * minimize diff * minimize again * strict=False
1 parent d8bb752 commit 8c7b0b2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pandas/tests/scalar/timedelta/test_timedelta.py

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
iNaT,
1515
)
1616
from pandas._libs.tslibs.dtypes import NpyDatetimeUnit
17+
from pandas.compat import IS64
1718
from pandas.errors import OutOfBoundsTimedelta
1819

1920
import pandas as pd
@@ -690,6 +691,7 @@ def test_round_implementation_bounds(self):
690691
with pytest.raises(OverflowError, match=msg):
691692
Timedelta.max.ceil("s")
692693

694+
@pytest.mark.xfail(not IS64, reason="Failing on 32 bit build", strict=False)
693695
@given(val=st.integers(min_value=iNaT + 1, max_value=lib.i8max))
694696
@pytest.mark.parametrize(
695697
"method", [Timedelta.round, Timedelta.floor, Timedelta.ceil]

pandas/tests/scalar/timestamp/test_unary_ops.py

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
)
2222
from pandas._libs.tslibs.dtypes import NpyDatetimeUnit
2323
from pandas._libs.tslibs.period import INVALID_FREQ_ERR_MSG
24+
from pandas.compat import IS64
2425
import pandas.util._test_decorators as td
2526

2627
import pandas._testing as tm
@@ -297,6 +298,7 @@ def test_round_implementation_bounds(self):
297298
with pytest.raises(OverflowError, match=msg):
298299
Timestamp.max.ceil("s")
299300

301+
@pytest.mark.xfail(not IS64, reason="Failing on 32 bit build", strict=False)
300302
@given(val=st.integers(iNaT + 1, lib.i8max))
301303
@pytest.mark.parametrize(
302304
"method", [Timestamp.round, Timestamp.floor, Timestamp.ceil]

0 commit comments

Comments
 (0)