mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #25985: sys.version_info is now used instead of sys.version
to format short Python version.
This commit is contained in:
parent
a9725f86a9
commit
885bdc4946
24 changed files with 56 additions and 52 deletions
|
@ -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__']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue