From 820f9f4b10d0bab0d1e35dae68e1554ff0553bae Mon Sep 17 00:00:00 2001 From: hparekh Date: Tue, 8 Dec 2015 14:16:03 +0900 Subject: [PATCH] Delete python bytecode before every test run. This should eliminate the need to clean -x -i to kill pyc files in your local directory to get tests to pass. Change-Id: I668c1baac23b29750fa19ccb0a4302504399dd75 --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 24a8d1d..8c91717 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,10 @@ setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -commands = /bin/bash run_tests.sh -N --no-pep8 {posargs} +commands = + find . -type f -name "*.pyc" -delete + /bin/bash run_tests.sh -N --no-pep8 {posargs} +whitelist_externals = find [testenv:py27] setenv = DJANGO_SETTINGS_MODULE=mistraldashboard.test.settings