Skip to content

Commit dfce33c

Browse files
authored
fix: don't expect string arrays to roundtrip in pandas (#10894)
1 parent ea35e64 commit dfce33c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

properties/test_pandas_roundtrip.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ def test_roundtrip_1d_pandas_extension_array(extension_array, is_index) -> None:
163163
df_arr_to_test = df.index if is_index else df["arr"]
164164
assert (df_arr_to_test == roundtripped).all()
165165
# `NumpyExtensionArray` types are not roundtripped, including `StringArray` which subtypes.
166-
if isinstance(extension_array, pd.arrays.NumpyExtensionArray): # type: ignore[attr-defined]
166+
if isinstance(
167+
extension_array, pd.arrays.NumpyExtensionArray | pd.arrays.ArrowStringArray
168+
): # type: ignore[attr-defined]
167169
assert isinstance(arr.data, np.ndarray)
168170
else:
169171
assert (

0 commit comments

Comments
 (0)