Skip to content

Commit 934849d

Browse files
committed
Use tempfile.gettempdir()
1 parent 7400554 commit 934849d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/subtests/test_subtest.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import sys
33
import json
44
import shutil
5+
import tempfile
56
import subprocess
67
from pathlib import Path
78

@@ -42,7 +43,7 @@
4243
# See helpers.apply_regex for more information.
4344
REGEX_PATHS = [
4445
str(Path(__file__).parent), # replace all references to baseline files
45-
str(os.path.realpath(os.getenv("TMPDIR"))), # replace all references to output files
46+
os.path.realpath(tempfile.gettempdir()), # replace all references to output files
4647
]
4748
REGEX_STRS = [
4849
r'RMS Value: ',

0 commit comments

Comments
 (0)