Skip to content

Commit

Permalink
Update test_geopandas_io.py
Browse files Browse the repository at this point in the history
  • Loading branch information
theroggy committed Jan 23, 2025
1 parent 46ba442 commit eda0ff8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pyogrio/tests/test_geopandas_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1157,10 +1157,7 @@ def test_write_dataframe_index(tmp_path, naturalearth_lowres, use_arrow):
)
@pytest.mark.requires_arrow_write_api
def test_write_empty_dataframe(tmp_path, ext, columns, dtype, use_arrow):
expected = gp.GeoDataFrame(geometry=[], columns=columns, crs=4326)
for column in columns:
expected[column] = expected[column].astype(dtype)

expected = gp.GeoDataFrame(geometry=[], columns=columns, dtype=dtype, crs=4326)
filename = tmp_path / f"test{ext}"
write_dataframe(expected, filename, use_arrow=use_arrow)

Expand Down

0 comments on commit eda0ff8

Please sign in to comment.