summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-06-28 18:07:10 (GMT)
committerGitHub <noreply@github.com>2019-06-28 18:07:10 (GMT)
commite3761ca91cda86462206d60244078f05c636dd13 (patch)
treed232887d7159cecfc4600648a8868f5ba4547063 /Lib/test/test_os.py
parent68c1c398f3534af16309a86ab815b61d2487e6db (diff)
downloadcpython-e3761ca91cda86462206d60244078f05c636dd13.zip
cpython-e3761ca91cda86462206d60244078f05c636dd13.tar.gz
cpython-e3761ca91cda86462206d60244078f05c636dd13.tar.bz2
bpo-37412: Fix test_os.test_getcwd_long_path() on macOS (GH-14452)
(cherry picked from commit 29f609ed07aa7856741ff8b8b8b050369d0faf81) Co-authored-by: Victor Stinner <vstinner@redhat.com>
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 2e73906..784000a 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -106,8 +106,7 @@ class MiscTests(unittest.TestCase):
dirname = dirname + ('a' * (dirlen - len(dirname)))
with tempfile.TemporaryDirectory() as tmpdir:
- with support.change_cwd(tmpdir):
- path = tmpdir
+ with support.change_cwd(tmpdir) as path:
expected = path
while True: