From 3aac5a199276a0fc713b9abd3593597d4c677320 Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Fri, 12 Sep 2014 12:04:50 +0100 Subject: [PATCH] Don't write python bytecode while testing This patch was based on the Nova patch: https://review.openstack.org/#/c/121044 This should reduce the number of times you need to completely delete your tox dir because you have stale pyc files around. In Ironic we have hit this problem a number of times, migrating to oslo.message was a big one that caused a lot of confusion. Closes-Bug: #1368661 Change-Id: I7dda3ad879beff1e494a36144c941a847177c2ef --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index dda68971dc..2c792d1735 100644 --- a/tox.ini +++ b/tox.ini @@ -7,6 +7,7 @@ envlist = py26,py27,pep8 usedevelop = True install_command = pip install -U {opts} {packages} setenv = VIRTUAL_ENV={envdir} + PYTHONDONTWRITEBYTECODE = 1 deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt whitelist_externals = bash