Skip to content
Merged
Prev Previous commit
Next Next commit
fix expected columns dtype
  • Loading branch information
jorisvandenbossche committed Aug 20, 2024
commit 3ef26fec9003f93392f50b0a89d400fb359c0445
4 changes: 4 additions & 0 deletions pandas/tests/io/test_feather.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ def test_read_feather_dtype_backend(
}
)

if using_infer_string:
expected.columns = expected.columns.astype(
pd.StringDtype(string_storage, na_value=np.nan)
)
tm.assert_frame_equal(result, expected)

def test_int_columns_and_index(self):
Expand Down