From 9471fcfdcb945003a890c3b3eb2e9872d67562c9 Mon Sep 17 00:00:00 2001 From: Md Nadeem Date: Wed, 2 Dec 2015 13:48:21 +0900 Subject: [PATCH] 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: I62b9029b984300194a00318de9a0111791bab07e Closes-Bug: #1368661 --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index b3f301cf9..477e852d7 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,10 @@ setenv = VIRTUAL_ENV={envdir} ZAQAR_TEST_SLOW=1 deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -commands = python setup.py testr --slowest --testr-args='--concurrency 1 {posargs}' +commands = + find . -type f -name "*.pyc" -delete + python setup.py testr --slowest --testr-args='--concurrency 1 {posargs}' +whitelist_externals = find [testenv:pypy] setenv = {[testenv]setenv}