From 3a603befebe218eee5babe7072a45d6dc99d86bd Mon Sep 17 00:00:00 2001 From: Brock Date: Thu, 10 Sep 2020 11:14:06 -0700 Subject: [PATCH 1/2] CI: xfail failing parquet test --- pandas/tests/io/test_parquet.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index 15f9837176315..9946c297df899 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -564,8 +564,19 @@ def test_s3_roundtrip(self, df_compat, s3_resource, pa, s3so): write_kwargs=s3so, ) - @td.skip_if_no("s3fs") - @pytest.mark.parametrize("partition_col", [["A"], []]) + @td.skip_if_no("s3fs") # also requires flask + @pytest.mark.parametrize( + "partition_col", + [ + pytest.param( + ["A"], + marks=pytest.mark.xfail( + reason="Getting back empty DataFrame", raises=AssertionError + ), + ), + [], + ], + ) def test_s3_roundtrip_for_dir( self, df_compat, s3_resource, pa, partition_col, s3so ): From 83c7c78df205eaba45cb01a85e89f293d8c48696 Mon Sep 17 00:00:00 2001 From: Brock Date: Thu, 10 Sep 2020 13:44:25 -0700 Subject: [PATCH 2/2] xfail on only py38+ --- pandas/tests/io/test_parquet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index 9946c297df899..35a400cba8671 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -8,6 +8,7 @@ import numpy as np import pytest +from pandas.compat import PY38 import pandas.util._test_decorators as td import pandas as pd @@ -571,7 +572,7 @@ def test_s3_roundtrip(self, df_compat, s3_resource, pa, s3so): pytest.param( ["A"], marks=pytest.mark.xfail( - reason="Getting back empty DataFrame", raises=AssertionError + PY38, reason="Getting back empty DataFrame", raises=AssertionError, ), ), [],