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: I0f59c977411d20751a26cac39504c51896b2eab8 Closes-Bug: #1368661
This commit is contained in:
parent
9b7a364a27
commit
e4ca678359
5
tox.ini
5
tox.ini
@ -9,7 +9,10 @@ usedevelop = True
|
||||
install_command = pip install -U {opts} {packages}
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands = nosetests monasca_common/tests
|
||||
whitelist_externals = find
|
||||
commands =
|
||||
find . -type f -name "*.pyc" -delete
|
||||
nosetests monasca_common/tests
|
||||
|
||||
[testenv:pep8]
|
||||
commands = flake8 monasca_common
|
||||
|
Loading…
x
Reference in New Issue
Block a user