Skip to content

Commit 4ab2aaa

Browse files
fix all_none feather test for non-string dtype
1 parent 93284cf commit 4ab2aaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyarrow/tests/test_feather.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def test_empty_strings(version):
426426
@pytest.mark.pandas
427427
def test_all_none(version):
428428
df = pd.DataFrame({'all_none': [None] * 10})
429-
if version == 1:
429+
if version == 1 and pa.pandas_compat._pandas_api.uses_string_dtype():
430430
expected = df.astype("str")
431431
else:
432432
expected = df

0 commit comments

Comments
 (0)