Skip to content

Commit 0ab02ec

Browse files
committed
Add skip for 32-bit in dtypes test
1 parent 7b35651 commit 0ab02ec

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

pandas/tests/io/test_rdata.py

+11-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
import pytest
1010

1111
from pandas._libs.tslibs.np_datetime import OutOfBoundsDatetime
12-
from pandas.compat import PY38
12+
from pandas.compat import (
13+
IS64,
14+
PY38,
15+
)
1316
import pandas.util._test_decorators as td
1417

1518
from pandas import (
@@ -715,14 +718,18 @@ def test_write_read_utc_dateteime():
715718
# DTYPES
716719

717720

721+
@pytest.mark.skipif(
722+
not IS64,
723+
reason=("large dtypes not supported in 32-bit"),
724+
)
718725
def test_write_read_dtypes(rtype, comp):
719726
rda_name = "pandas_dataframe" if rtype == "rda" else "r_dataframe"
720727

721728
dts = [
722729
Timestamp.min.ceil("S"),
723-
Timestamp("1950-01-01").ceil("S"),
730+
Timestamp(-(10 ** 18)),
724731
Timestamp(0),
725-
Timestamp("2000-01-01").floor("S"),
732+
Timestamp(10 ** 18),
726733
Timestamp.now().floor("S"),
727734
Timestamp.max.floor("S"),
728735
]
@@ -737,7 +744,7 @@ def test_write_read_dtypes(rtype, comp):
737744
),
738745
"interval": interval_range(start=10, periods=6, freq=10 * 2),
739746
"bool": [False, True, True, True, False, False],
740-
"int": [2 ** 20 - 1, 1, -(2 ** 20) + 1, -1, 0, 10 ** 9],
747+
"int": [2 ** 31 - 1, 1, -(2 ** 31) + 1, -1, 0, 10 ** 9],
741748
"float": [0, np.pi, float("nan"), np.e, np.euler_gamma, 0],
742749
"string": array(
743750
["acidification", "change", "loss", "use", "depletion", "aersols"],

0 commit comments

Comments
 (0)