Set PYTHONDONTWRITEBYTECODE=1 in tox.ini

When switching between branches with DB migrations, leftover .pyc
files can cause all the tests to fail. Setting PYTHONDONTWRITEBYTECODE=1
prevents python from writing the .pyx files in the first place, at
a possible performance cost dueing test runs.

Change-Id: Ice380614be5401c3b5b1e76903a568a159dec0fb
This commit is contained in:
Kiall Mac Innes 2015-02-24 12:34:48 +00:00
parent 795671a16a
commit 1d8f7ff383

View File

@ -13,7 +13,9 @@ deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
# Note the hash seed is set to 0 until designate can be tested with a
# random hash seed successfully.
setenv = PYTHONHASHSEED=0
setenv =
PYTHONHASHSEED=0
PYTHONDONTWRITEBYTECODE=1
whitelist_externals = sh
commands =
sh tools/pretty_tox.sh '{posargs}'