Do not generate bytecode in tests

This is a known best practise during development, to avoid leaving
stale bytecode after a file is deleted.

Change-Id: I993858d8976acf8fcd26ca8583d6cefacd761817
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami committed 2026-10-04 03:55:37 +09:00
1 parent e185d72211
commit 1969d5f66a
1 file changed
+2 -4
+2 -4
View File
@@ -3,9 +3,8 @@ minversion = 4.28.0
envlist = py3,py3,pep8
[testenv]
allowlist_externals =
find
env
setenv =
PYTHONDONTWRITEBYTECODE=1
constraints =
{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
deps =
@@ -16,7 +15,6 @@ passenv =
OSLO_LOG_TEST_EVENTLET
EVENTLET_HUB
commands =
find . -type f -name "*.pyc" -delete
python -c "import eventlet.hubs; print('Hub used:', eventlet.hubs.get_hub())"
stestr run {posargs}
stestr slowest