From 34eb61f8b84a0efff362060d1c0db61242b833e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= Date: Tue, 26 Nov 2019 13:18:00 +0100 Subject: [PATCH] Make python not write bytecode files when unit tests are run MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d36c25c..e4793a5 100644 --- a/Makefile +++ b/Makefile @@ -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