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
This commit is contained in:
Cyril Roelandt 2022-02-23 21:25:29 +01:00
parent 1b854e1657
commit 75218d289e
1 changed files with 1 additions and 0 deletions

View File

@ -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