Here is my tox.ini file:
dino@DINO:~/code/mplfinance$ cat tox.ini
[tox]
envlist = py36, py37, py38
[pytest]
python_files = tests.py
[testenv]
deps =
matplotlib
numpy
pandas
pytest
setenv =
# don't use interactive backend for matplotlib in e2e tests
MPLBACKEND = agg
commands =
pytest
When I run tox<Enter>
it kicks off pytest for each of the three environments specified. When pytest first starts (for each environment) it reports the versions of Python and a few other things that it is using. For example, for py36
I see:
py36 runtests: PYTHONHASHSEED='893013612'
py36 runtests: commands[0] | pytest
============= test session starts ==============
platform linux -- Python 3.6.7, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
rootdir: /home/dino/code/mplfinance, inifile: tox.ini
collected 2 items
tests.py .. [100%]
=========== 2 passed in 13.48s ==============
It says py36 runtests: ...
and then it says platform linux -- Python 3.6.7, ...
so all is good.
Similarly, I see
py37 runtests: PYTHONHASHSEED='893013612'
py37 runtests: commands[0] | pytest
======================== test session starts ==================
platform linux -- Python 3.7.4, ...
All good again.
The problem is, when it comes to py38 I see:
py38 runtests: PYTHONHASHSEED='893013612'
py38 runtests: commands[0] | pytest
============ test session starts ==================
platform linux -- Python 3.6.7, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
rootdir: /home/dino/code/mplfinance, inifile: tox.ini
collected 2 items
tests.py .. [100%]
============== 2 passed in 16.19s ====================
Why am I seeing Python 3.6.7
for py38
??? Am I doing something wrong here?
Many thanks, in advance, for your help!
For what it's worth, here is my general environment information, running WSL:
dino@DINO:~/code/mplfinance$ cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.2 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.2 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
dino@DINO:~/code/mplfinance$ uname -a
Linux DINO 4.4.0-18362-Microsoft #476-Microsoft Fri Nov 01 16:53:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux
dino@DINO:~/code/mplfinance$ python --version
Python 3.7.4