From f0f3cb840ff6ae81cd0f57bc531dbbcf477c43c0 Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Thu, 19 Dec 2019 12:44:00 +0100 Subject: [PATCH] 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: I142774a28ebb200c2e6212f41c5734d578c5abea --- tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index a55e4f9e47..77778e86cf 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,8 @@ [tox] -minversion = 2.0 +minversion = 3.1.0 skipsdist = True envlist = py3,pep8 +ignore_basepython_conflict=true [testenv] usedevelop = True