diff options
author | Steve Dower <steve.dower@python.org> | 2019-10-14 15:42:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-14 15:42:21 (GMT) |
commit | d83fc2702951f56a7339aa95d62414ed6e0fb40d (patch) | |
tree | 3c5cafc3c5c5547add7a7c4846f232181c59dc1b | |
parent | 298439ce3fb01de6c3110cc4847e6afe3253ba7a (diff) | |
download | cpython-d83fc2702951f56a7339aa95d62414ed6e0fb40d.zip cpython-d83fc2702951f56a7339aa95d62414ed6e0fb40d.tar.gz cpython-d83fc2702951f56a7339aa95d62414ed6e0fb40d.tar.bz2 |
bpo-38453: Resolve test directories before chdir to them (GH-16723)
-rw-r--r-- | Lib/test/support/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index d593fc1..0f294c5 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 |