Skip to content

Commit 2c2d27d

Browse files
committed
TST/CI: xfail test_round_sanity for 32 bit
1 parent f7e0e68 commit 2c2d27d

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

pandas/tests/scalar/timedelta/test_timedelta.py

Lines changed: 13 additions & 1 deletion
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
@@ -692,7 +693,18 @@ def test_round_implementation_bounds(self):
692693

693694
@given(val=st.integers(min_value=iNaT + 1, max_value=lib.i8max))
694695
@pytest.mark.parametrize(
695-
"method", [Timedelta.round, Timedelta.floor, Timedelta.ceil]
696+
"method",
697+
[
698+
pytest.param(
699+
Timedelta.round,
700+
marks=pytest.mark.xfail(not IS64, reason="Failing on 32 bit build"),
701+
),
702+
Timedelta.floor,
703+
pytest.param(
704+
Timedelta.ceil,
705+
marks=pytest.mark.xfail(not IS64, reason="Failing on 32 bit build"),
706+
),
707+
],
696708
)
697709
def test_round_sanity(self, val, method):
698710
val = np.int64(val)

pandas/tests/scalar/timestamp/test_unary_ops.py

Lines changed: 10 additions & 1 deletion
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
@@ -299,7 +300,15 @@ def test_round_implementation_bounds(self):
299300

300301
@given(val=st.integers(iNaT + 1, lib.i8max))
301302
@pytest.mark.parametrize(
302-
"method", [Timestamp.round, Timestamp.floor, Timestamp.ceil]
303+
"method",
304+
[
305+
Timestamp.round,
306+
pytest.param(
307+
Timedelta.floor,
308+
marks=pytest.mark.xfail(not IS64, reason="Failing on 32 bit build"),
309+
),
310+
Timestamp.ceil,
311+
],
303312
)
304313
def test_round_sanity(self, val, method):
305314
val = np.int64(val)

0 commit comments

Comments
 (0)