Skip to content

Commit a35062c

Browse files
committed
Normalize temp path to use OS specific separator.
1 parent 3c5c369 commit a35062c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def temp_path():
99
with tempfile.TemporaryDirectory() as temp_dir:
1010

1111
def _temp_path(filepath=""):
12-
return os.path.join(temp_dir, filepath)
12+
# normalize path to use OS-specific separators
13+
return os.path.normpath(os.path.join(temp_dir, filepath))
1314

1415
yield _temp_path

0 commit comments

Comments
 (0)