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

(cherry picked from commit d83fc27029)

Co-authored-by: Steve Dower <steve.dower@python.org>
This commit is contained in:
Miss Islington (bot) 2019-10-14 09:01:29 -07:00 committed by GitHub
parent e498329ebe
commit aa909b6b12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1066,7 +1066,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