Commit d83fc270 authored by Steve Dower's avatar Steve Dower Committed by GitHub

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

parent 298439ce
...@@ -1068,7 +1068,7 @@ def change_cwd(path, quiet=False): ...@@ -1068,7 +1068,7 @@ def change_cwd(path, quiet=False):
""" """
saved_dir = os.getcwd() saved_dir = os.getcwd()
try: try:
os.chdir(path) os.chdir(os.path.realpath(path))
except OSError as exc: except OSError as exc:
if not quiet: if not quiet:
raise raise
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment