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

(cherry picked from commit 29f609ed07)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
This commit is contained in:
Miss Islington (bot) 2019-06-28 11:07:10 -07:00 committed by GitHub
parent 68c1c398f3
commit e3761ca91c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: