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:
parent
8c9df990a8
commit
34eb61f8b8
1 changed files with 1 additions and 1 deletions
2
Makefile
2
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue