summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorshu-mutou <shu-mutou@rf.jp.nec.com>2015-12-02 12:52:30 +0900
committershu-mutou <shu-mutou@rf.jp.nec.com>2015-12-02 12:53:36 +0900
commit7ca83ae8e7dbb869203531c589a1c3615e5b0c01 (patch)
treec04af85bdd78e5993d6f0c9352822c03dadcea6d /tox.ini
parentbeb62b6e1338e70d888065da5271d88824fa9ec5 (diff)
downloadpython-keystoneclient-7ca83ae8e7dbb869203531c589a1c3615e5b0c01.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: Ib2af15b06f75b86edd4d7f7ca37695b85b12b311 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 4f14419..6d19a7b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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 =