Issue #15241: Fix test_prefixes failure in test_venv due to symlink in

tempfile directory path (i.e. on OS X /tmp is actually /private/tmp).
This commit is contained in:
Ned Deily 2012-07-13 15:48:04 -07:00
parent 26c01d7e05
commit 045bd5340f

View file

@ -20,7 +20,7 @@ class BaseTest(unittest.TestCase):
"""Base class for venv tests."""
def setUp(self):
self.env_dir = tempfile.mkdtemp()
self.env_dir = os.path.realpath(tempfile.mkdtemp())
if os.name == 'nt':
self.bindir = 'Scripts'
self.pydocname = 'pydoc.py'