From d2718f45e3ba6b1f7e17b40bf9705e4db4914f3d Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Thu, 9 Jan 2020 10:28:04 +0100 Subject: [PATCH] Enforce running tox with correct python version based on env 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: I113c66802523de3ef64bdc08c61e7b2f36633dc3 --- tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 93c30c304..2c292d56c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,8 @@ [tox] -minversion = 2.0 +minversion = 3.1.0 envlist = py3,py27,docs,pep8 skipsdist = True +ignore_basepython_conflict=true [testenv] usedevelop = True