diff options
author | shu-mutou <shu-mutou@rf.jp.nec.com> | 2015-12-02 12:56:56 +0900 |
---|---|---|
committer | shu-mutou <shu-mutou@rf.jp.nec.com> | 2015-12-02 12:57:24 +0900 |
commit | b9bd8c6a030a04e5fc4e545dd0014ed1de27b774 (patch) | |
tree | 0fb270b42a40ba3c86840f2eb85e7eb79fcefc26 /tox.ini | |
parent | 7f9a81bb1bd1fe14345f66074272a5cfd86af736 (diff) | |
download | python-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.ini | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |