Set test python executable to python2

If a developer uses an operating system with Python 3 as a default, tox
will use the Python 3 interpreter to run the tests. However, this
introduces some errors since some standard library modules and classes
are changed or missing in Python 3. This will cause some false
failiures.

By enforcing the base python to Python 2, the tests are ensured to be
running on the same interpreter regardless of the operating system's
default.

Change-Id: Ied142fe44a38ee3119d02921ef680fd09ce62f0e
This commit is contained in:
Nolan Brubaker 2016-04-26 12:22:57 -04:00
parent 2fc728daa7
commit 909bf76ffb

View File

@ -9,6 +9,7 @@ install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = bash
basepython = python2
[testenv:releasenotes]
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html