1
0
Fork 0

Make python not write bytecode files when unit tests are run

Previously, when unit tests were run, python would leave behind files
with bytecompiled modules. It's not useful, it just clutters the
repository. And it could potentially lead to problems - it seems to
have lead to some problem for me earlier today when running git bisect to
find out when `make test` started failing.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
This commit is contained in:
Ondřej Lysoněk 2019-11-26 13:18:00 +01:00
parent 8c9df990a8
commit 34eb61f8b8

View file

@ -223,7 +223,7 @@ clean: clean-html
rm -rf $(VERSIONED_NAME) rpm-build-dir
test:
$(PYTHON) -m unittest discover tests/unit
$(PYTHON) -B -m unittest discover tests/unit
lint:
$(PYLINT) -E -f parseable tuned *.py tests/unit