diff --git a/pandas/tests/series/accessors/test_struct_accessor.py b/pandas/tests/series/accessors/test_struct_accessor.py index e1acce86f0410..f97efa3f7be33 100644 --- a/pandas/tests/series/accessors/test_struct_accessor.py +++ b/pandas/tests/series/accessors/test_struct_accessor.py @@ -3,6 +3,8 @@ import pyarrow.compute as pc import pytest +from pandas.compat.pyarrow import pa_version_under11p0 + from pandas import ( ArrowDtype, DataFrame, @@ -162,6 +164,7 @@ def test_struct_accessor_api_for_invalid(invalid): ([b"string_col"], "string_col"), ], ) +@pytest.mark.skipif(not pa_version_under11p0, reason="pyarrow>=11.0.0 required") def test_struct_accessor_field_expanded(indices, name): arrow_type = pa.struct( [