From dff8dabab01ab7e222cecdbc1a3ae8286fe6501b Mon Sep 17 00:00:00 2001 From: "huang.zhiping" Date: Sat, 9 Jun 2018 19:04:04 +0800 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: I859649b7f4f9ab70617309947375d4886e14a860 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 2ed825f..dfeef0f 100644 --- a/tox.ini +++ b/tox.ini @@ -17,13 +17,16 @@ commands = sitepackages = True [testenv:pep8] +basepython = python3 commands = flake8 [testenv:cover] +basepython = python3 commands = python setup.py test --coverage --coverage-package-name=os_collect_config [testenv:venv] +basepython = python3 commands = {posargs} [flake8]