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:
Guido van Rossum 2007-11-19 17:50:22 +00:00
parent 089816ba0b
commit 4673e19d8b
1 changed files with 1 additions and 0 deletions

View File

@ -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: