bpo-38453: Resolve test directories before chdir to them (GH-16723)
This commit is contained in:
parent
298439ce3f
commit
d83fc27029
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue