Skip to content

Commit 8330393

Browse files
authored
TST: geopandas compat (#245)
1 parent d3c6072 commit 8330393

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tobler/tests/test_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ def test_h3fy_nogeoms():
2626

2727
def test_h3fy_nocrs():
2828
sac1 = load_example("Sacramento1")
29-
sac1 = geopandas.read_file(sac1.get_path("sacramentot2.shp"))
30-
with pytest.warns(DeprecationWarning, match="Overriding the CRS of a GeoDataFrame"):
31-
sac1.crs = None
29+
sac1 = geopandas.read_file(sac1.get_path("sacramentot2.shp")).set_crs(
30+
None, allow_override=True
31+
)
3232
with pytest.raises(ValueError, match="source geodataframe must have a valid CRS"):
3333
h3fy(sac1, return_geoms=True)
3434

0 commit comments

Comments
 (0)