Skip to content

Commit e3761ca

Browse files
bpo-37412: Fix test_os.test_getcwd_long_path() on macOS (GH-14452)
(cherry picked from commit 29f609e) Co-authored-by: Victor Stinner <[email protected]>
1 parent 68c1c39 commit e3761ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/test_os.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ def test_getcwd_long_path(self):
106106
dirname = dirname + ('a' * (dirlen - len(dirname)))
107107

108108
with tempfile.TemporaryDirectory() as tmpdir:
109-
with support.change_cwd(tmpdir):
110-
path = tmpdir
109+
with support.change_cwd(tmpdir) as path:
111110
expected = path
112111

113112
while True:

0 commit comments

Comments
 (0)