Skip to content

Commit aa909b6

Browse files
bpo-38453: Resolve test directories before chdir to them (GH-16723)
(cherry picked from commit d83fc27) Co-authored-by: Steve Dower <[email protected]>
1 parent e498329 commit aa909b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/support/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ def change_cwd(path, quiet=False):
10661066
"""
10671067
saved_dir = os.getcwd()
10681068
try:
1069-
os.chdir(path)
1069+
os.chdir(os.path.realpath(path))
10701070
except OSError as exc:
10711071
if not quiet:
10721072
raise

0 commit comments

Comments
 (0)