From ccd56bf0d43ff7906b5dfe92f4c5cf62b3821bbd Mon Sep 17 00:00:00 2001 From: "huang.zhiping" Date: Wed, 15 Aug 2018 07:04:13 +0000 Subject: [PATCH] fix tox python3 overrides We want to default to running all tox environments under python 3, so set the basepython value in each environment. We do not want to specify a minor version number, because we do not want to have to update the file every time we upgrade python. We do not want to set the override once in testenv, because that breaks the more specific versions used in default environments like py35 and py36. Change-Id: Iaa7c9b9fca48dd2e091049da711e70395f6ec28e --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index d035d5e..8281202 100644 --- a/tox.ini +++ b/tox.ini @@ -39,14 +39,17 @@ commands = stestr run --serial {posargs} [testenv:pep8] +basepython = python3 commands = flake8 python setup.py check --restructuredtext --strict [testenv:venv] +basepython = python3 commands = {posargs} [testenv:cover] +basepython = python3 # Also do not run test_coverage_ext tests while gathering coverage as those # tests conflict with coverage. setenv =