Delete python bytecode before every test run

Bring over the cleaning line from run_tests.sh for the pyc files to
all the tox runs.

This should eliminate the need to clean -x -i to kill pyc files in
your local directory to get tests to pass.

Change-Id: Ifc8df1634336fdfd298c353ad808c77f48b87b68
Closes-Bug: #1368661
This commit is contained in:
Haiwei Xu 2015-12-02 10:42:59 +09:00
parent b20d019a20
commit ab92eef888
1 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,10 @@ usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = nosetests
whitelist_externals = find
commands =
find . -type f -name "*.pyc" -delete
nosetests
[testenv:pep8]
commands = flake8