mirror of https://github.com/python/cpython
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
|
@ -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…
Reference in New Issue