summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2012-07-17 10:42:39 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2012-07-17 10:42:39 (GMT)
commiteb3e62f1c88e4a94be95e38e01541ebb52079d3a (patch)
tree6618ad1d666136577d5238dd543099733470f061 /Lib
parent7cdc2bdd0d13982256fb28f49696fa70baab7ed0 (diff)
downloadcpython-eb3e62f1c88e4a94be95e38e01541ebb52079d3a.zip
cpython-eb3e62f1c88e4a94be95e38e01541ebb52079d3a.tar.gz
cpython-eb3e62f1c88e4a94be95e38e01541ebb52079d3a.tar.bz2
Issue #15230: Attempt to make the OS X buildbots happy by resolving the tmp dir symlink in the test suite
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_runpy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_runpy.py b/Lib/test/test_runpy.py
index 85eb76f..6e9c4fc 100644
--- a/Lib/test/test_runpy.py
+++ b/Lib/test/test_runpy.py
@@ -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])