Skip to content

Commit 0c6959d

Browse files
[2.3.x] CI: update fastparquet xfails (#60559)
CI: update fastparquet xfails
1 parent 9052c9e commit 0c6959d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pandas/tests/io/test_fsspec.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
from pandas._config import using_string_dtype
77

8+
from pandas.compat import HAS_PYARROW
9+
810
from pandas import (
911
DataFrame,
1012
date_range,
@@ -168,7 +170,9 @@ def test_excel_options(fsspectest):
168170
assert fsspectest.test[0] == "read"
169171

170172

171-
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string) fastparquet")
173+
@pytest.mark.xfail(
174+
using_string_dtype() and HAS_PYARROW, reason="TODO(infer_string) fastparquet"
175+
)
172176
def test_to_parquet_new_file(cleared_fs, df1):
173177
"""Regression test for writing to a not-yet-existent GCS Parquet file."""
174178
pytest.importorskip("fastparquet")

pandas/tests/io/test_gcs.py

-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
import numpy as np
88
import pytest
99

10-
from pandas._config import using_string_dtype
11-
1210
from pandas.compat.pyarrow import pa_version_under17p0
1311

1412
from pandas import (
@@ -196,7 +194,6 @@ def test_to_csv_compression_encoding_gcs(
196194
tm.assert_frame_equal(df, read_df)
197195

198196

199-
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string) fastparquet")
200197
def test_to_parquet_gcs_new_file(monkeypatch, tmpdir):
201198
"""Regression test for writing to a not-yet-existent GCS Parquet file."""
202199
pytest.importorskip("fastparquet")

0 commit comments

Comments
 (0)