From 857d9b1ff16b819370f53b8e4b42f1a05a18ff8e Mon Sep 17 00:00:00 2001 From: 98k <18552437190@163.com> Date: Fri, 5 Oct 2018 10:37:36 +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: I4dae808f500bd5c8caa462a2d1deae157adff29d Closes-Bug: #1802032 --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index 8cdc99e74..40a8a602f 100644 --- a/tox.ini +++ b/tox.ini @@ -30,6 +30,7 @@ commands = whitelist_externals = rm [testenv:linters] +basepython = python3 whitelist_externals = bash commands = bash -c "find {toxinidir} \ @@ -38,4 +39,5 @@ commands = -print0 | xargs -0 yamllint" [testenv:venv] +basepython = python3 commands = {posargs}