9
9
import pytest
10
10
11
11
from pandas ._libs .tslibs .np_datetime import OutOfBoundsDatetime
12
- from pandas .compat import PY38
12
+ from pandas .compat import (
13
+ IS64 ,
14
+ PY38 ,
15
+ )
13
16
import pandas .util ._test_decorators as td
14
17
15
18
from pandas import (
@@ -715,14 +718,18 @@ def test_write_read_utc_dateteime():
715
718
# DTYPES
716
719
717
720
721
+ @pytest .mark .skipif (
722
+ not IS64 ,
723
+ reason = ("large dtypes not supported in 32-bit" ),
724
+ )
718
725
def test_write_read_dtypes (rtype , comp ):
719
726
rda_name = "pandas_dataframe" if rtype == "rda" else "r_dataframe"
720
727
721
728
dts = [
722
729
Timestamp .min .ceil ("S" ),
723
- Timestamp ("1950-01-01" ). ceil ( "S" ),
730
+ Timestamp (- ( 10 ** 18 ) ),
724
731
Timestamp (0 ),
725
- Timestamp ("2000-01-01" ). floor ( "S" ),
732
+ Timestamp (10 ** 18 ),
726
733
Timestamp .now ().floor ("S" ),
727
734
Timestamp .max .floor ("S" ),
728
735
]
@@ -737,7 +744,7 @@ def test_write_read_dtypes(rtype, comp):
737
744
),
738
745
"interval" : interval_range (start = 10 , periods = 6 , freq = 10 * 2 ),
739
746
"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 ],
741
748
"float" : [0 , np .pi , float ("nan" ), np .e , np .euler_gamma , 0 ],
742
749
"string" : array (
743
750
["acidification" , "change" , "loss" , "use" , "depletion" , "aersols" ],
0 commit comments