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

View file

@ -29,6 +29,7 @@ def _run_python(*args):
@contextlib.contextmanager @contextlib.contextmanager
def temp_dir(): def temp_dir():
dirname = tempfile.mkdtemp() dirname = tempfile.mkdtemp()
dirname = os.path.realpath(dirname)
try: try:
yield dirname yield dirname
finally: finally: