Issue #15230: Attempt to make the OS X buildbots happy by resolving the tmp dir symli...
authorNick Coghlan <ncoghlan@gmail.com>
Tue, 17 Jul 2012 10:42:39 +0000 (20:42 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Tue, 17 Jul 2012 10:42:39 +0000 (20:42 +1000)
Lib/test/test_runpy.py

index 85eb76fa79fc0e8ab3594012ecf853f3084da5fb..6e9c4fc23e42de5675b6f2fa09db21ef891cbc4f 100644 (file)
@@ -182,7 +182,7 @@ class RunModuleTestCase(unittest.TestCase, CodeExecutionMixin):
     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])