From 4ab2aaacfce571b60b5597583cebd78c793366fd Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Wed, 13 Nov 2024 16:01:41 +0100 Subject: [PATCH] fix all_none feather test for non-string dtype --- python/pyarrow/tests/test_feather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pyarrow/tests/test_feather.py b/python/pyarrow/tests/test_feather.py index 72aaf3499ee31..249fb621279a6 100644 --- a/python/pyarrow/tests/test_feather.py +++ b/python/pyarrow/tests/test_feather.py @@ -426,7 +426,7 @@ def test_empty_strings(version): @pytest.mark.pandas def test_all_none(version): df = pd.DataFrame({'all_none': [None] * 10}) - if version == 1: + if version == 1 and pa.pandas_compat._pandas_api.uses_string_dtype(): expected = df.astype("str") else: expected = df