From cc86ef56f61a81031f7b9f177ee7d849404d7744 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 12 Sep 2014 05:47:03 -0400 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. Closes-Bug: #1368661 Change-Id: Idf3a46d8c95806f2d2ce28ce84ced12b625e53df (cherry picked from commit a2530ed1e3c59c9bae5cab48222eb69d7e35ca98) --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 1ec9ac763a82..9546225859be 100644 --- a/tox.ini +++ b/tox.ini @@ -14,6 +14,7 @@ setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = + find . -type f -name "*.pyc" -delete python -m nova.openstack.common.lockutils python setup.py test --slowest --testr-args='{posargs}' [tox:jenkins]