Delete python bytecode before every test run

Because python creates pyc files during tox runs, certain
changes in the tree, like deletes of files, or switching
branches, can create spurious errors.

Change-Id: Ib2af15b06f75b86edd4d7f7ca37695b85b12b311
Closes-Bug: #1368661
This commit is contained in:
shu-mutou 2015-12-02 12:52:30 +09:00
parent beb62b6e13
commit 7ca83ae8e7
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,9 @@ setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
commands = find . -type f -name "*.pyc" -delete
python setup.py testr --slowest --testr-args='{posargs}'
whitelist_externals = find
[testenv:pep8]
commands =