Skip to content

Commit

Permalink
use tempfile.mkdtemp instead of gettempdir metno#692
Browse files Browse the repository at this point in the history
  • Loading branch information
avaldebe committed Jul 5, 2022
1 parent e9f2666 commit 92dfb0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/io/test_iris_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
aod_cube_nounit = aod_cube.copy()
aod_cube_nounit.units = ""

FAKE_FILE = Path(tempfile.gettempdir()) / "test_iris_io/invalid.nc"
FAKE_FILE = Path(tempfile.mkdtemp()) / "test_iris_io/invalid.nc"
FAKE_FILE.parent.mkdir(exist_ok=True, parents=True)
FAKE_FILE.write_text("")

Expand Down

0 comments on commit 92dfb0e

Please sign in to comment.