]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix the OSX failures in this test -- they were due to /tmp being a symlink
authorGuido van Rossum <guido@python.org>
Mon, 19 Nov 2007 17:50:22 +0000 (17:50 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 19 Nov 2007 17:50:22 +0000 (17:50 +0000)
to /private/tmp.  Adding a call to os.path.realpath() to temp_dir() fixed it.

Lib/test/test_cmd_line_script.py

index 297efa0ae19025fe713b33a8f171ae8a8f4c7b53..3a8e8f190f4de9d60b391a30583e694b1f882238 100644 (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: