Skip to content

Commit 9fb91db

Browse files
authored
Manual Backport PR #47803 on branch 1.4.x (TST/CI: xfail test_round_sanity for 32 bit) (#47824)
Backport PR #47803: TST/CI: xfail test_round_sanity for 32 bit
1 parent 49ab26c commit 9fb91db

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
@@ -13,6 +13,7 @@
1313
NaT,
1414
iNaT,
1515
)
16+
from pandas.compat import IS64
1617

1718
import pandas as pd
1819
from pandas import (
@@ -413,6 +414,7 @@ def test_round_implementation_bounds(self):
413414
with pytest.raises(OverflowError, match=msg):
414415
Timedelta.max.ceil("s")
415416

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

pandas/tests/scalar/timestamp/test_unary_ops.py

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
to_offset,
2121
)
2222
from pandas._libs.tslibs.period import INVALID_FREQ_ERR_MSG
23+
from pandas.compat import IS64
2324
import pandas.util._test_decorators as td
2425

2526
import pandas._testing as tm
@@ -280,6 +281,7 @@ def test_round_implementation_bounds(self):
280281
with pytest.raises(OverflowError, match=msg):
281282
Timestamp.max.ceil("s")
282283

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

0 commit comments

Comments
 (0)