[Python-checkins] bpo-37412: Fix test_os.test_getcwd_long_path() on macOS (GH-14452)
Miss Islington (bot)
webhook-mailer at python.org
Fri Jun 28 14:07:16 EDT 2019
https://github.com/python/cpython/commit/e3761ca91cda86462206d60244078f05c636dd13
commit: e3761ca91cda86462206d60244078f05c636dd13
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-06-28T11:07:10-07:00
summary:
bpo-37412: Fix test_os.test_getcwd_long_path() on macOS (GH-14452)
(cherry picked from commit 29f609ed07aa7856741ff8b8b8b050369d0faf81)
Co-authored-by: Victor Stinner <vstinner at redhat.com>
files:
M Lib/test/test_os.py
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 2e73906f93c3..784000a2eb36 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:
More information about the Python-checkins
mailing list