Skip to content

Commit

Permalink
fix all_none feather test for non-string dtype
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Nov 13, 2024
1 parent 93284cf commit 4ab2aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyarrow/tests/test_feather.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ab2aaa

Please sign in to comment.