[Python-checkins] cpython: Issue #15241: Fix test_prefixes failure in test_venv due to symlink in

ned.deily python-checkins at python.org
Sat Jul 14 00:49:18 CEST 2012


http://hg.python.org/cpython/rev/0dbffd3c1317
changeset:   78093:0dbffd3c1317
user:        Ned Deily <nad at acm.org>
date:        Fri Jul 13 15:48:04 2012 -0700
summary:
  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).

files:
  Lib/test/test_venv.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
--- a/Lib/test/test_venv.py
+++ b/Lib/test/test_venv.py
@@ -20,7 +20,7 @@
     """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'

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list