diff options
author | Cyril Roelandt <cyril@redhat.com> | 2022-02-23 21:25:29 +0100 |
---|---|---|
committer | Cyril Roelandt <cyril@redhat.com> | 2022-08-02 18:09:50 +0200 |
commit | 75218d289ed27b4eddd645436275b1e51aed0fab (patch) | |
tree | 9df721bb2d7d3ff0dda9641e6d02230f5011a596 /tox.ini | |
parent | 1b854e1657d7d94c27aa0b1458d48da78ad8621c (diff) | |
download | python-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
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |