Skip to content

Commit d83fc27

Browse files
authored
bpo-38453: Resolve test directories before chdir to them (GH-16723)
1 parent 298439c commit d83fc27

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
@@ -1068,7 +1068,7 @@ def change_cwd(path, quiet=False):
10681068
"""
10691069
saved_dir = os.getcwd()
10701070
try:
1071-
os.chdir(path)
1071+
os.chdir(os.path.realpath(path))
10721072
except OSError as exc:
10731073
if not quiet:
10741074
raise

0 commit comments

Comments
 (0)