Commit 9c3cf6b4 authored by Nick Coghlan's avatar Nick Coghlan

Merge Issue #15230 OS X buildbot fix from 3.2

parents 1c4eb2c0 eb3e62f1
...@@ -185,7 +185,7 @@ class RunModuleTestCase(unittest.TestCase, CodeExecutionMixin): ...@@ -185,7 +185,7 @@ class RunModuleTestCase(unittest.TestCase, CodeExecutionMixin):
def _make_pkg(self, source, depth, mod_base="runpy_test"): def _make_pkg(self, source, depth, mod_base="runpy_test"):
pkg_name = "__runpy_pkg__" pkg_name = "__runpy_pkg__"
test_fname = mod_base+os.extsep+"py" 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) if verbose > 1: print(" Package tree in:", sub_dir)
sys.path.insert(0, pkg_dir) sys.path.insert(0, pkg_dir)
if verbose > 1: print(" Updated sys.path:", sys.path[0]) if verbose > 1: print(" Updated sys.path:", sys.path[0])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment