From 73c8af56ffb43415f7c2ede6cd9aeac9b70b85f9 Mon Sep 17 00:00:00 2001 From: hparekh Date: Mon, 7 Dec 2015 17:58:33 +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: Icb958a994f0864f11b4f4d091826f3530875fe44 Closes-Bug: #1368661 --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index eabd5714..0e29affb 100644 --- a/tox.ini +++ b/tox.ini @@ -19,7 +19,10 @@ setenv = deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -commands = nosetests mistralclient/tests/unit +commands = + find . -type f -name "*.pyc" -delete + nosetests mistralclient/tests/unit +whitelist_externals = find [testenv:functional] setenv =