From ab92eef888ad5647ac319b79c88fbeb64660d3ff Mon Sep 17 00:00:00 2001 From: Haiwei Xu Date: Wed, 2 Dec 2015 10:42:59 +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: Ifc8df1634336fdfd298c353ad808c77f48b87b68 Closes-Bug: #1368661 --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 87d82b43..785aa8da 100644 --- a/tox.ini +++ b/tox.ini @@ -8,7 +8,10 @@ usedevelop = True install_command = pip install -U {opts} {packages} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -commands = nosetests +whitelist_externals = find +commands = + find . -type f -name "*.pyc" -delete + nosetests [testenv:pep8] commands = flake8