Skip to content

Commit

Permalink
delay temp file deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
gboeing committed Oct 26, 2024
1 parent c648262 commit 8bde823
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_osmnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,6 @@ def test_osm_xml() -> None:
assert edge_key in G.edges
assert G.edges[edge_key]["name"] in {"8th Street", "Willow Street"}

# delete temporary files
Path.unlink(Path(path_osm))
Path.unlink(Path(path_gz))

# test OSM xml saving
G = ox.graph_from_point(location_point, dist=500, network_type="drive", simplify=False)
fp = Path(ox.settings.data_folder) / "graph.osm"
Expand Down Expand Up @@ -269,6 +265,10 @@ def test_osm_xml() -> None:
ox.settings.overpass_settings = default_overpass_settings
ox.settings.all_oneway = default_all_oneway

# delete temporary files
Path.unlink(Path(path_osm))
Path.unlink(Path(path_gz))


def test_elevation() -> None:
"""Test working with elevation data."""
Expand Down

0 comments on commit 8bde823

Please sign in to comment.