diff options
author | Ned Deily <nad@acm.org> | 2012-07-13 22:48:04 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2012-07-13 22:48:04 (GMT) |
commit | 045bd5340f437468e30d7880700f241ed6830010 (patch) | |
tree | 82181d6cede5ced0dd433ef605ea9610984228e8 /Lib/test | |
parent | 26c01d7e05f189f83ed81de065acd9032e2f393a (diff) | |
download | cpython-045bd5340f437468e30d7880700f241ed6830010.zip cpython-045bd5340f437468e30d7880700f241ed6830010.tar.gz cpython-045bd5340f437468e30d7880700f241ed6830010.tar.bz2 |
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).
Diffstat (limited to 'Lib/test')
-rw-r--r-- | 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 index 3750c36..c98a14e 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' |