bpo-38453: Resolve test directories before chdir to them (GH-16723)

This commit is contained in:
Steve Dower 2019-10-14 08:42:21 -07:00 committed by GitHub
parent 298439ce3f
commit d83fc27029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1068,7 +1068,7 @@ def change_cwd(path, quiet=False):
"""
saved_dir = os.getcwd()
try:
os.chdir(path)
os.chdir(os.path.realpath(path))
except OSError as exc:
if not quiet:
raise