Skip to content

Commit

Permalink
try fix for python 3.10 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
theroggy committed Jan 23, 2025
1 parent 8026fa4 commit a5bfa29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyogrio/tests/test_geopandas_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,9 @@ 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, dtype=dtype, crs=4326)
expected = gp.GeoDataFrame(geometry=[], columns=columns, crs=4326)
for column in columns:
expected[column] = expected[column].astype(dtype)

filename = tmp_path / f"test{ext}"
write_dataframe(expected, filename, use_arrow=use_arrow)
Expand Down

0 comments on commit a5bfa29

Please sign in to comment.