summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyril Roelandt <cyril@redhat.com>2022-02-23 21:25:29 +0100
committerCyril Roelandt <cyril@redhat.com>2022-08-02 18:09:50 +0200
commit75218d289ed27b4eddd645436275b1e51aed0fab (patch)
tree9df721bb2d7d3ff0dda9641e6d02230f5011a596
parent1b854e1657d7d94c27aa0b1458d48da78ad8621c (diff)
downloadpython-glanceclient-75218d289ed27b4eddd645436275b1e51aed0fab.tar.gz
Delete python bytecode before every test run
Because python creates pyc files during tox runs, certain changes in the tree, like branch switching or file deletion, can create spurious errors. Closes-Bug: #1368661 Change-Id: I93917b051039506d99837028700bc03337cf68f6
-rw-r--r--tox.ini1
1 files changed, 1 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 717a238..4cb7a27 100644
--- a/tox.ini
+++ b/tox.ini
@@ -7,6 +7,7 @@ skipsdist = True
usedevelop = True
setenv = OS_STDOUT_NOCAPTURE=False
OS_STDERR_NOCAPTURE=False
+ PYTHONDONTWRITEBYTECODE=1
# Nowadays, TOX_CONSTRAINTS_FILE should be used, but some older scripts might
# still be using UPPER_CONSTRAINTS_FILE, so we check both variables and use the