From a995ccfcec3440aa5af2184d4ac35425e1a04e13 Mon Sep 17 00:00:00 2001 From: Md Nadeem Date: Wed, 2 Dec 2015 13:42:02 +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: Ibcc824370ed3d48835780cca6c1075856f1dfacc Closes-Bug: #1368661 --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index e0c306f1..ac0d6a72 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,10 @@ setenv = VIRTUAL_ENV={envdir} NOSE_OPENSTACK_STDOUT=1 deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -commands = nosetests {posargs} +commands = find . -type f -name "*.pyc" -delete + nosetests {posargs} + +whitelist_externals = find [tox:jenkins] sitepackages = True