From d496229f13b256f71e9faa2ce66e1c9d0c104d01 Mon Sep 17 00:00:00 2001 From: Eric Fried Date: Wed, 27 Nov 2019 13:39:42 -0600 Subject: [PATCH] Set ignore_basepython_conflict (fixes confusing pep8 message) Automatic envs (pyXX) will only use the python version appropriate to that env and ignore basepython inherited from [testenv] if we set ignore_basepython_conflict. The lack thereof was causing pep8 jobs in the gate to output lines like: pep8: skipped tests congratulations :) /usr/local/lib/python3.6/dist-packages/tox/config/__init__.py:582: UserWarning: conflicting basepython version (set 3.6, should be 3.7) for env 'py37';resolve conflict or set ignore_basepython_conflict proposed_version, implied_version, testenv_config.envname ...despite the fact that the job was actually running. Change-Id: Icb5281756d77117fb28139b9cc720b055e481290 --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index 1850b2a4..a9143363 100644 --- a/tox.ini +++ b/tox.ini @@ -2,6 +2,10 @@ minversion = 2.0 envlist = py36,py37,pep8 skipsdist = True +# Automatic envs (pyXX) will only use the python version appropriate to that +# env and ignore basepython inherited from [testenv] if we set +# ignore_basepython_conflict. +ignore_basepython_conflict = True [testenv] usedevelop = True