[Python-checkins] cpython (3.2): Issue #15230: Attempt to make the OS X buildbots happy by resolving the tmp dir

nick.coghlan python-checkins at python.org
Tue Jul 17 12:43:54 CEST 2012


http://hg.python.org/cpython/rev/07ed744a47f6
changeset:   78148:07ed744a47f6
branch:      3.2
parent:      78146:eddafae5e575
user:        Nick Coghlan <ncoghlan at gmail.com>
date:        Tue Jul 17 20:42:39 2012 +1000
summary:
  Issue #15230: Attempt to make the OS X buildbots happy by resolving the tmp dir symlink in the test suite

files:
  Lib/test/test_runpy.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_runpy.py b/Lib/test/test_runpy.py
--- a/Lib/test/test_runpy.py
+++ b/Lib/test/test_runpy.py
@@ -182,7 +182,7 @@
     def _make_pkg(self, source, depth, mod_base="runpy_test"):
         pkg_name = "__runpy_pkg__"
         test_fname = mod_base+os.extsep+"py"
-        pkg_dir = sub_dir = tempfile.mkdtemp()
+        pkg_dir = sub_dir = os.path.realpath(tempfile.mkdtemp())
         if verbose > 1: print("  Package tree in:", sub_dir)
         sys.path.insert(0, pkg_dir)
         if verbose > 1: print("  Updated sys.path:", sys.path[0])

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list