Skip to content

Commit a04ff49

Browse files
committed
fix: correct path creation in test
Signed-off-by: Vincent Koppen <[email protected]>
1 parent a60b448 commit a04ff49

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/unit/model/grids/test_grid_base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"""Grid tests"""
66

77
import dataclasses
8-
from pathlib import Path
98

109
import numpy as np
1110
import pytest
@@ -294,8 +293,8 @@ def test_from_txt_file_with_branch_ids(tmp_path):
294293
np.testing.assert_array_equal([95, 91, 92, 93, 94, 96, 97, 98], grid.branches.id)
295294

296295

297-
def test_from_txt_file_conflicting_ids():
298-
txt_file = Path("/tmp/tmp_grid")
296+
def test_from_txt_file_conflicting_ids(tmp_path):
297+
txt_file = tmp_path / "tmp_grid"
299298
txt_file.write_text("S1 2\n1 3", encoding="utf-8")
300299

301300
with pytest.raises(ValueError):

0 commit comments

Comments
 (0)