mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #15230: Attempt to make the OS X buildbots happy by resolving the tmp dir symlink in the test suite
This commit is contained in:
parent
7cdc2bdd0d
commit
eb3e62f1c8
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue