Skip to content

Commit 55ce01c

Browse files
only test datetime tz for pyarrow >= 0.7
1 parent c200885 commit 55ce01c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/tests/io/test_parquet.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,10 @@ def test_basic(self, pa, df_full):
323323
df = df_full
324324

325325
# additional supported types for pyarrow
326-
df['datetime_tz'] = pd.date_range('20130101', periods=3,
327-
tz='Europe/Brussels')
326+
import pyarrow
327+
if LooseVersion(pyarrow.__version__) >= LooseVersion('0.7.0'):
328+
df['datetime_tz'] = pd.date_range('20130101', periods=3,
329+
tz='Europe/Brussels')
328330
df['bool_with_none'] = [True, None, True]
329331

330332
self.check_round_trip(df, pa)

0 commit comments

Comments
 (0)