mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Fix the OSX failures in this test -- they were due to /tmp being a symlink
to /private/tmp. Adding a call to os.path.realpath() to temp_dir() fixed it.
This commit is contained in:
parent
089816ba0b
commit
4673e19d8b
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ def _run_python(*args):
|
|||
@contextlib.contextmanager
|
||||
def temp_dir():
|
||||
dirname = tempfile.mkdtemp()
|
||||
dirname = os.path.realpath(dirname)
|
||||
try:
|
||||
yield dirname
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue