summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2019-10-14 08:42:21 -0700
committerGitHub <noreply@github.com>2019-10-14 08:42:21 -0700
commitd83fc2702951f56a7339aa95d62414ed6e0fb40d (patch)
tree3c5cafc3c5c5547add7a7c4846f232181c59dc1b
parent298439ce3fb01de6c3110cc4847e6afe3253ba7a (diff)
downloadcpython-git-d83fc2702951f56a7339aa95d62414ed6e0fb40d.tar.gz
bpo-38453: Resolve test directories before chdir to them (GH-16723)
-rw-r--r--Lib/test/support/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index d593fc18d9..0f294c5b0f 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -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