Clear out pyc files before a tox run

When switching back from master to a stable branch, tests
will often fail as pyc files will exist for migrations
that no longer have py files.

Change-Id: Ie3d892f86b929e87605ba29f4237152c4a47bec8
This commit is contained in:
Kiall Mac Innes 2015-09-29 11:56:47 +01:00
parent 66613e9b2d
commit 24aa529e01

View File

@ -14,7 +14,10 @@ deps = -r{toxinidir}/requirements.txt
setenv =
PYTHONDONTWRITEBYTECODE=1
whitelist_externals = sh
find
rm
commands =
find . -type f -name "*.pyc" -delete
sh tools/pretty_tox.sh '{posargs}'
[testenv:docs]