TOX/pep8: Enforce the use of python2

The toos/debug_venv.py does not work well with PY3, this patch is
modifying the tox "pep8" job to enforce the use of python2 instead of
the default interpreter in the host OS.

Related error:

./tools/debug_venv.py:41:24: E901 SyntaxError: invalid syntax
    raise e.args[0][0], e.args[0][1], e.args[0][2]

Change-Id: I9b7e8110bf14df9448c7d0f731a605daa2fa864b
This commit is contained in:
Lucas Alvares Gomes 2018-03-08 16:53:53 +00:00
parent acede4dd1c
commit da9da9201d
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ deps =
commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:pep8]
basepython = python2.7
commands = flake8 {posargs}
{toxinidir}/tools/coding-checks.sh --pylint '{posargs}'