geopandas / pyogrio

Vectorized vector I/O using OGR
https://pyogrio.readthedocs.io
MIT License
257 stars 21 forks source link

TST: replace pytest.tmpdir fixture with pytest.tmp_path #400

Closed brendan-ward closed 1 month ago

brendan-ward commented 2 months ago

tmpdir is a legacy interface, and we're actually detecting that they have a read method in some cases and reading their contents to bytes in get_vsi_path, which is not what we should be doing.

Among other things, using tmp_path instead allows us to pass these in as pathlib.Path objects, which we can specifically check for and convert to strings before subsequent processing.