From 1861e2b28c18956155051ef3809c63e47170cd1a Mon Sep 17 00:00:00 2001 From: jbrockmendel Date: Fri, 27 Mar 2020 14:26:18 -0700 Subject: [PATCH 1/2] troubleshoot azure --- environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index cf579738f6fe9..e6cb4ab00fa24 100644 --- a/environment.yml +++ b/environment.yml @@ -98,7 +98,7 @@ dependencies: - pyqt>=5.9.2 # pandas.read_clipboard - pytables>=3.4.2 # pandas.read_hdf, DataFrame.to_hdf - - s3fs # pandas.read_csv... when using 's3://...' path + - s3fs<=0.4.0 # pandas.read_csv... when using 's3://...' path - sqlalchemy # pandas.read_sql, DataFrame.to_sql - xarray # DataFrame.to_xarray - cftime # Needed for downstream xarray.CFTimeIndex test From ad7fa9bff70d88c235be116a395d3d3e201fb829 Mon Sep 17 00:00:00 2001 From: jbrockmendel Date: Fri, 27 Mar 2020 16:44:00 -0700 Subject: [PATCH 2/2] troubleshoot locale build --- environment.yml | 2 +- pandas/tests/io/test_parquet.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index e6cb4ab00fa24..cf579738f6fe9 100644 --- a/environment.yml +++ b/environment.yml @@ -98,7 +98,7 @@ dependencies: - pyqt>=5.9.2 # pandas.read_clipboard - pytables>=3.4.2 # pandas.read_hdf, DataFrame.to_hdf - - s3fs<=0.4.0 # pandas.read_csv... when using 's3://...' path + - s3fs # pandas.read_csv... when using 's3://...' path - sqlalchemy # pandas.read_sql, DataFrame.to_sql - xarray # DataFrame.to_xarray - cftime # Needed for downstream xarray.CFTimeIndex test diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index cfcf617cedf9c..d0eaafb787222 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -1,6 +1,7 @@ """ test parquet compat """ import datetime from distutils.version import LooseVersion +import locale import os from warnings import catch_warnings @@ -483,6 +484,11 @@ def test_categorical(self, pa): expected = df.astype(object) check_round_trip(df, pa, expected=expected) + # GH#33077 2020-03-27 + @pytest.mark.xfail( + locale.getlocale()[0] == "zh_CN", + reason="dateutil cannot parse e.g. '五, 27 3月 2020 21:45:38 GMT'", + ) def test_s3_roundtrip(self, df_compat, s3_resource, pa): # GH #19134 check_round_trip(df_compat, pa, path="s3://pandas-test/pyarrow.parquet")