bpo-37412: Fix test_os.test_getcwd_long_path() on macOS (GH-14452)

This commit is contained in:
Victor Stinner 2019-06-28 19:39:48 +02:00 committed by GitHub
parent 042821ae3c
commit 29f609ed07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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: