[Pytest-commit] Issue #269: Python 2.5 environment uses Python 2.7 interpreter (hpk42/tox)

torfuspolymorphus issues-reply at bitbucket.org
Mon Aug 10 12:16:48 CEST 2015


New issue 269: Python 2.5 environment uses Python 2.7 interpreter
https://bitbucket.org/hpk42/tox/issues/269/python-25-environment-uses-python-27

torfuspolymorphus:

When I use tox to create a Python 2.5 environment it somehow picks up a Python 2.7 interpreter instead. All other Python versions work fine, as does Python 2.5 on its own:


```
#!bash

$ cat tox.ini 
[tox]
envlist = py25,py26,py27,py33,py34
skipsdist = True

[testenv]
commands = python --version

$ tox
py25 installed: wheel==0.24.0
py25 runtests: PYTHONHASHSEED='285314601'
py25 runtests: commands[0] | python --version
Python 2.7.6
py26 installed: argparse==1.3.0,wheel==0.24.0
py26 runtests: PYTHONHASHSEED='285314601'
py26 runtests: commands[0] | python --version
Python 2.6.9
py27 installed: wheel==0.24.0
py27 runtests: PYTHONHASHSEED='285314601'
py27 runtests: commands[0] | python --version
Python 2.7.6
py33 create: /home/torf/tmp/toxtest/.tox/py33
py33 installed: wheel==0.24.0
py33 runtests: PYTHONHASHSEED='285314601'
py33 runtests: commands[0] | python --version
Python 3.3.6
py34 create: /home/torf/tmp/toxtest/.tox/py34
py34 installed: wheel==0.24.0
py34 runtests: PYTHONHASHSEED='285314601'
py34 runtests: commands[0] | python --version
Python 3.4.0
______________ summary ______________
  py25: commands succeeded
  py26: commands succeeded
  py27: commands succeeded
  py33: commands succeeded
  py34: commands succeeded
  congratulations :)

$ python2.5 --version
Python 2.5.6

$ .tox/py25/bin/python --version
Python 2.7.6

$ tox --version
2.1.1 imported from /usr/local/lib/python2.7/dist-packages/tox/__init__.pyc
```

This is on Ubuntu 14.04.





More information about the pytest-commit mailing list