mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-38453: Resolve test directories before chdir to them (GH-16723)
This commit is contained in:
parent
298439ce3f
commit
d83fc27029
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue