From 93284cfdff4bc910af365ed41c2de7db979104ba Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Wed, 13 Nov 2024 14:04:57 +0100 Subject: [PATCH] xfail test for upstream bug --- python/pyarrow/tests/test_pandas.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/pyarrow/tests/test_pandas.py b/python/pyarrow/tests/test_pandas.py index 7da355e2cd55f..606d798b1b32c 100644 --- a/python/pyarrow/tests/test_pandas.py +++ b/python/pyarrow/tests/test_pandas.py @@ -349,7 +349,10 @@ def test_integer_index_column(self): df = pd.DataFrame([(1, 'a'), (2, 'b'), (3, 'c')]) _check_pandas_roundtrip(df, preserve_index=True) - def test_index_metadata_field_name(self): + def test_index_metadata_field_name(self, request): + if _pandas_api.uses_string_dtype(): + # https://github.com/pandas-dev/pandas/issues/59879 + request.applymarker(pytest.mark.xfail(reason="bug in pandas string dtype")) # test None case, and strangely named non-index columns df = pd.DataFrame( [(1, 'a', 3.1), (2, 'b', 2.2), (3, 'c', 1.3)],