diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2014-04-15 10:18:10 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2014-04-15 10:18:10 (GMT) |
commit | 1e53f8d9bff9d9a7f6ea27aa0aea9eaca5307cc6 (patch) | |
tree | 8f0da74d360fc08bc390e370d7336b4e17889b4e /Lib/test/test_venv.py | |
parent | a0d107324d38ab6fc5af4c6fee272e1097f98f49 (diff) | |
download | cpython-1e53f8d9bff9d9a7f6ea27aa0aea9eaca5307cc6.zip cpython-1e53f8d9bff9d9a7f6ea27aa0aea9eaca5307cc6.tar.gz cpython-1e53f8d9bff9d9a7f6ea27aa0aea9eaca5307cc6.tar.bz2 |
Issue #21197: Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX.
Diffstat (limited to 'Lib/test/test_venv.py')
-rw-r--r-- | Lib/test/test_venv.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py index 1084a99..e13cd8c 100644 --- a/Lib/test/test_venv.py +++ b/Lib/test/test_venv.py @@ -9,6 +9,7 @@ import ensurepip import os import os.path import shutil +import struct import subprocess import sys import tempfile @@ -87,6 +88,14 @@ class BasicTest(BaseTest): self.isdir(self.bindir) self.isdir(self.include) self.isdir(*self.lib) + # Issue 21197 + p = self.get_env_file('lib64') + conditions = ((struct.calcsize('P') == 8) and (os.name == 'posix') and + (sys.platform != 'darwin')) + if conditions: + self.assertTrue(os.path.islink(p)) + else: + self.assertFalse(os.path.exists(p)) data = self.get_text_file_contents('pyvenv.cfg') if sys.platform == 'darwin' and ('__PYVENV_LAUNCHER__' in os.environ): |