Skip to content

Commit 29f609e

Browse files
authored
bpo-37412: Fix test_os.test_getcwd_long_path() on macOS (GH-14452)
1 parent 042821a commit 29f609e

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)