From 1128a26cb4a7a56e735f862fe150f307d115e9be Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Fri, 1 Dec 2017 09:53:15 -0800 Subject: tox: Don't create *.pyc files during unit/functional tests Don't create *.pyc files during unit/functional tests as they just add cruft during tox runs. This is similar to what we already do in openstack/ironic Change-Id: Id4364519903db20308f78f2aaeca3ad2d37b298a --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 92c29e02..4e2e5496 100644 --- a/tox.ini +++ b/tox.ini @@ -8,6 +8,7 @@ usedevelop = True install_command = pip install -U -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} setenv = VIRTUAL_ENV={envdir} + PYTHONDONTWRITEBYTECODE = 1 OS_TEST_PATH=./ironic_python_agent/tests/unit LANGUAGE=en_US LC_ALL=en_US.utf-8 @@ -20,6 +21,7 @@ usedevelop = True # of seconds to wait for the agent to come alive during functional testing. setenv = VIRTUAL_ENV={envdir} + PYTHONDONTWRITEBYTECODE = 1 OS_TEST_PATH=./ironic_python_agent/tests/functional TEST_PORT=9999 IPA_WAIT_TRIES=100 -- cgit v1.2.1