From: Guido van Rossum Date: Mon, 19 Nov 2007 17:50:22 +0000 (+0000) Subject: Fix the OSX failures in this test -- they were due to /tmp being a symlink X-Git-Tag: v2.6a1~1036 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4673e19d8b477ee25159de5dc8f6c9b89cdfaee7;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/test/test_cmd_line_script.py b/Lib/test/test_cmd_line_script.py index 297efa0ae190..3a8e8f190f4d 100644 --- a/Lib/test/test_cmd_line_script.py +++ b/Lib/test/test_cmd_line_script.py @@ -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: