From 92c828b99c9dd923d89cd62e8b4f66df165b0f0a Mon Sep 17 00:00:00 2001 From: MD NADEEM Date: Tue, 20 Sep 2016 12:09:30 +0530 Subject: [PATCH] Remove all bytcode & objectcode before running tox Currently __pycache__ directory, which also holds python bytecode is not deleted when running tox. TrivialFix Change-Id: I0fdcf9a3f9b01cee813eefdbfe29d208dd67f826 --- tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index d627b630f2..b188089a09 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,8 @@ passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE OS_TEST_TIMEOUT PYTHON OS_TEST_PATH LISTOPT IDOPTION commands = - find . -type f -name "*.pyc" -delete + find . -type f -name "*.py[c|o]" -delete + find . -type d -name "__pycache__" -delete python setup.py test --slowest --testr-args='{posargs}' [testenv:pep8]