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:
parent
e498329ebe
commit
aa909b6b12
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue