]> granicus.if.org Git - python/commitdiff
Issue #15241: Fix test_prefixes failure in test_venv due to symlink in
authorNed Deily <nad@acm.org>
Fri, 13 Jul 2012 22:48:04 +0000 (15:48 -0700)
committerNed Deily <nad@acm.org>
Fri, 13 Jul 2012 22:48:04 +0000 (15:48 -0700)
tempfile directory path (i.e. on OS X /tmp is actually /private/tmp).

Lib/test/test_venv.py

index 3750c361a295190279f5c76c20c85ecff856c6f2..c98a14ead9f59a1b565932a6ec21883139969da4 100644 (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'