Delete python bytecode file

This patch delete python bytecode including pyo
before every test run

Change-Id: I837d85a53e159b132da20a56d926c2158c204dec
This commit is contained in:
gecong1973 2016-10-12 14:20:15 +08:00
parent d3884f9012
commit fe4c4be5c5
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
whitelist_externals = find
commands =
find . -type f -name "*.pyc" -delete
find . -type f -name "*.py[c|o]" -delete
python setup.py testr --slowest --testr-args='{posargs}'
[testenv:venv]
@ -21,7 +21,7 @@ commands = {posargs}
[testenv:docs]
commands =
find . -type f -name "*.pyc" -delete
find . -type f -name "*.py[c|o]" -delete
python setup.py build_sphinx
[testenv:pep8]