From: Stephen Finucane Date: Tue, 19 Jan 2016 22:02:52 +0000 (+0000) Subject: tox: Cleanup '.pyc' files before run X-Git-Tag: v1.1.0~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e58c29;p=thirdparty%2Fpatchwork.git tox: Cleanup '.pyc' files before run Sometimes leftover '.pyc' files can cause tests to fail. Ensure this never happens by always removing these files on start. Signed-off-by: Stephen Finucane --- diff --git a/tox.ini b/tox.ini index 2b19d3c7..a5e20a8f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,10 @@ [tox] -minversion = 1.6 +minversion = 2.0 envlist = py{27,34}-django{16,17,18,19} skipsdist = True [testenv] +whitelist_externals = find deps = -r{toxinidir}/requirements-test.txt django16: django>=1.6,<1.7 @@ -17,6 +18,7 @@ passenv = PW_TEST_DB_USER PW_TEST_DB_PASS DISPLAY SELENIUM_BROWSER PW_SKIP_BROWSER_TESTS commands = + find . -type f -name "*.pyc" -delete {toxinidir}/manage.py test --noinput --liveserver=localhost:9000-9200 \ '{posargs:patchwork}'