Enforce running tox with correct python version based on env

Since removing support for Python 2, we changed the basepython
value to 3.
This means that all the tox tests run with the default python
version available in the system.
This is not quite correct when running on environment such as
py36, py37 or py38, since they imply running with different
Python versions based on the environment.
To enforce the correct version we need to add the option
ignore_basepython_conflict available since tox 3.1.0 [0].

[0] https://tox.readthedocs.io/en/latest/config.html#conf-ignore_basepython_conflict

Change-Id: Ia14bc6397a88f200277abc5485cab02eb3724e1b
This commit is contained in:
Riccardo Pittau 2019-12-20 16:24:13 +01:00
parent 9b1450398c
commit 917d2e44eb
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,7 @@
[tox]
minversion = 3.1.0
envlist = py3,pep8,functional-py36
ignore_basepython_conflict=true
[testenv]
basepython = python3