Skip to content

Commit d564b9e

Browse files
committed
Make integration test work directory path canonical
This avoids the use of Windows "short paths" (e.g., C:\\Users\\RUNNER~1\\AppData\\Local) which may cause spurious test results.
1 parent 9489ec2 commit d564b9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
# To purchase a commercial license, send an email to [email protected].
2323
#
2424
import json
25+
import os
2526
import pathlib
2627
import platform
2728
import typing
@@ -121,4 +122,4 @@ def working_dir(tmpdir_factory) -> str:
121122
end. This way all the tests work in isolation.
122123
"""
123124
work_dir = tmpdir_factory.mktemp(basename="TestWorkingDir")
124-
yield str(work_dir)
125+
yield os.path.realpath(work_dir)

0 commit comments

Comments
 (0)