From 0159076663e6ee659c40148adc67a004674bcf20 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 28 Jun 2019 19:39:48 +0200 Subject: [PATCH] bpo-37412: Fix test_os.test_getcwd_long_path() on macOS (GH-14452) (cherry picked from commit 29f609ed07aa7856741ff8b8b8b050369d0faf81) Co-authored-by: Victor Stinner --- Lib/test/test_os.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 2e73906f93c3ee..784000a2eb3668 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -106,8 +106,7 @@ def test_getcwd_long_path(self): 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: