From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 28 Jun 2019 18:07:10 +0000 (-0700) Subject: bpo-37412: Fix test_os.test_getcwd_long_path() on macOS (GH-14452) X-Git-Tag: v3.8.0b2~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3761ca91cda86462206d60244078f05c636dd13;p=python bpo-37412: Fix test_os.test_getcwd_long_path() on macOS (GH-14452) (cherry picked from commit 29f609ed07aa7856741ff8b8b8b050369d0faf81) Co-authored-by: Victor Stinner --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 2e73906f93..784000a2eb 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: