diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-02-11 13:10:36 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-02-11 13:10:36 +0200 |
commit | 885bdc4946890f4bb80557fab80c3874b2cc4d39 (patch) | |
tree | be6280757afecfd1b41c886f651d6cafae384df1 /Lib/test/test_venv.py | |
parent | a9725f86a984f74e74f09c4808fc8f4b403728b2 (diff) | |
download | cpython-git-885bdc4946890f4bb80557fab80c3874b2cc4d39.tar.gz |
Issue #25985: sys.version_info is now used instead of sys.version
to format short Python version.
Diffstat (limited to 'Lib/test/test_venv.py')
-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 28b0f6c3e3..f38f52df4d 100644 --- a/Lib/test/test_venv.py +++ b/Lib/test/test_venv.py @@ -51,7 +51,7 @@ class BaseTest(unittest.TestCase): self.include = 'Include' else: self.bindir = 'bin' - self.lib = ('lib', 'python%s' % sys.version[:3]) + self.lib = ('lib', 'python%d.%d' % sys.version_info[:2]) self.include = 'include' if sys.platform == 'darwin' and '__PYVENV_LAUNCHER__' in os.environ: executable = os.environ['__PYVENV_LAUNCHER__'] |