summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorshu-mutou <shu-mutou@rf.jp.nec.com>2015-12-02 12:56:56 +0900
committershu-mutou <shu-mutou@rf.jp.nec.com>2015-12-02 12:57:24 +0900
commitb9bd8c6a030a04e5fc4e545dd0014ed1de27b774 (patch)
tree0fb270b42a40ba3c86840f2eb85e7eb79fcefc26 /tox.ini
parent7f9a81bb1bd1fe14345f66074272a5cfd86af736 (diff)
downloadpython-cinderclient-b9bd8c6a030a04e5fc4e545dd0014ed1de27b774.tar.gz
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: Ib5cbd375b208dbea1f18ada00b44ba76dcdda9c5 Closes-Bug: #1368661
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini4
1 files changed, 3 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 3f24d1b..9695383 100644
--- a/tox.ini
+++ b/tox.ini
@@ -11,7 +11,9 @@ setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-commands = python setup.py testr --testr-args='{posargs}'
+commands = find . -type f -name "*.pyc" -delete
+ python setup.py testr --testr-args='{posargs}'
+whitelist_externals = find
[testenv:pep8]
commands = flake8