From 51dc8fb3735b8ebdf2f767672ecaa91300150903 Mon Sep 17 00:00:00 2001 From: Alexey Galkin Date: Tue, 6 Sep 2016 15:57:16 +0300 Subject: [PATCH] Update tox.ini * Don't write python bytecode while testing * Remove previous coverage data before generating new Change-Id: I3dcd61ab5da31270612d1a8a7287037620185d2a --- tox.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index b12b397..21993d7 100644 --- a/tox.ini +++ b/tox.ini @@ -5,6 +5,8 @@ skipsdist = True [testenv] setenv = VIRTUAL_ENV={envdir} + PYTHONDONTWRITEBYTECODE = 1 + LANGUAGE=en_US usedevelop = True install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} deps = -r{toxinidir}/test-requirements.txt @@ -31,7 +33,9 @@ commands = [testenv:cover] setenv = VIRTUAL_ENV={envdir} -commands = python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$' +commands = + coverage erase + python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$' [testenv:venv] commands = {posargs}