Skip to content

Commit 171b800

Browse files
committed
Offset by 10e9
1 parent 2cc3ca2 commit 171b800

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

pandas/tests/scalar/timedelta/test_timedelta.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
iNaT,
1515
)
1616
from pandas._libs.tslibs.dtypes import NpyDatetimeUnit
17-
from pandas.compat import IS64
1817
from pandas.errors import OutOfBoundsTimedelta
1918

2019
import pandas as pd
@@ -691,8 +690,7 @@ def test_round_implementation_bounds(self):
691690
with pytest.raises(OverflowError, match=msg):
692691
Timedelta.max.ceil("s")
693692

694-
@pytest.mark.xfail(not IS64, reason="Failing on 32 bit build", strict=False)
695-
@given(val=st.integers(min_value=iNaT + 1, max_value=lib.i8max))
693+
@given(val=st.integers(min_value=iNaT + 1 + 10**9, max_value=lib.i8max - 10**9))
696694
@pytest.mark.parametrize(
697695
"method", [Timedelta.round, Timedelta.floor, Timedelta.ceil]
698696
)

pandas/tests/scalar/timestamp/test_unary_ops.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
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
2524
import pandas.util._test_decorators as td
2625

2726
import pandas._testing as tm
@@ -298,8 +297,7 @@ def test_round_implementation_bounds(self):
298297
with pytest.raises(OverflowError, match=msg):
299298
Timestamp.max.ceil("s")
300299

301-
@pytest.mark.xfail(not IS64, reason="Failing on 32 bit build", strict=False)
302-
@given(val=st.integers(iNaT + 1, lib.i8max))
300+
@given(val=st.integers(iNaT + 1 + 10**9, lib.i8max - 10**9))
303301
@pytest.mark.parametrize(
304302
"method", [Timestamp.round, Timestamp.floor, Timestamp.ceil]
305303
)

0 commit comments

Comments
 (0)