From 95a5fd3c42f2b61cbf1baf7af09f9ea4dd1e730a Mon Sep 17 00:00:00 2001 From: Andrey Kurilin Date: Mon, 25 May 2015 22:56:10 -0700 Subject: [PATCH] Set Python2.7 as basepython for testenv Based on: * default python can be different at different operation systems; * test environment should not depend on system in which it created; * Python2.7 is used by default in gates it would be nice to set Python2.7 as python interpreter for testenvs in tox configuration file. Change-Id: Iff9daf4a412a27011bb21b2860558fda6574db34 --- tox.ini | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tox.ini b/tox.ini index c20501b9a8..faffbf3e80 100644 --- a/tox.ini +++ b/tox.ini @@ -15,11 +15,20 @@ install_command = pip install -U {opts} {packages} usedevelop = True commands = python setup.py testr --slowest --testr-args='{posargs}' distribute = false +basepython = python2.7 [testenv:pep8] commands = flake8 distribute = false +[testenv:py26] +basepython = python2.6 + + +[testenv:py34] +basepython = python3.4 + + [testenv:venv] commands = {posargs}