Delete python bytecode file

This patch delete python bytecode including pyo
before every test run

Change-Id: I17056d291980e0b249bfcc82d64af733948fc983
This commit is contained in:
gecong1973 2016-10-12 14:08:28 +08:00
parent 61b5ef5d30
commit 5077f4006f
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ envlist = py34,py27,pypy,pep8, bandit
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = find
commands =
find . -type f -name "*.pyc" -delete
find . -type f -name "*.py[co]" -delete
python setup.py testr --slowest --testr-args='{posargs}'
[testenv:pep8]
@ -14,7 +14,7 @@ commands = flake8
[testenv:py27]
commands =
find . -type f -name "*.pyc" -delete
find . -type f -name "*.py[co]" -delete
python setup.py testr --slowest --testr-args='{posargs}'
doc8 --ignore-path "doc/source/history.rst" doc/source