From: Ned Deily Date: Fri, 13 Jul 2012 22:48:04 +0000 (-0700) Subject: Issue #15241: Fix test_prefixes failure in test_venv due to symlink in X-Git-Tag: v3.3.0b2~220 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=045bd5340f437468e30d7880700f241ed6830010;p=python 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). --- diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py index 3750c361a2..c98a14ead9 100644 --- a/Lib/test/test_venv.py +++ b/Lib/test/test_venv.py @@ -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'