From fe4c4be5c584143088c353b8a892dc3723afa6bd Mon Sep 17 00:00:00 2001 From: gecong1973 Date: Wed, 12 Oct 2016 14:20:15 +0800 Subject: [PATCH] Delete python bytecode file This patch delete python bytecode including pyo before every test run Change-Id: I837d85a53e159b132da20a56d926c2158c204dec --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index fba18cc..2d2f6c5 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,7 @@ install_command = pip install -U {opts} {packages} deps = -r{toxinidir}/requirements.txt whitelist_externals = find commands = - find . -type f -name "*.pyc" -delete + find . -type f -name "*.py[c|o]" -delete python setup.py testr --slowest --testr-args='{posargs}' [testenv:venv] @@ -21,7 +21,7 @@ commands = {posargs} [testenv:docs] commands = - find . -type f -name "*.pyc" -delete + find . -type f -name "*.py[c|o]" -delete python setup.py build_sphinx [testenv:pep8]