Run tests with Python Development mode

Helps catching more issues with the test suite.
https://docs.python.org/3/library/devmode.html#devmode
This commit is contained in:
François Freitag
2020-11-11 14:16:34 +01:00
parent 229e11c488
commit 22a4ed531c
2 changed files with 3 additions and 3 deletions

View File

@@ -66,11 +66,11 @@ doclinter:
.PHONY: test
test:
@$(PYTHON) -m pytest -v $(TEST)
@$(PYTHON) -X dev -m pytest -v $(TEST)
.PHONY: covertest
covertest:
@$(PYTHON) -m pytest -v --cov=sphinx --junitxml=.junit.xml $(TEST)
@$(PYTHON) -X dev -m pytest -v --cov=sphinx --junitxml=.junit.xml $(TEST)
.PHONY: build
build:

View File

@@ -28,7 +28,7 @@ setenv =
PYTHONWARNINGS = all,ignore::ImportWarning:importlib._bootstrap_external,ignore::DeprecationWarning:site,ignore::DeprecationWarning:distutils
PYTEST_ADDOPTS = {env:PYTEST_ADDOPTS:} --color yes
commands=
pytest --durations 25 {posargs}
python -X dev -m pytest --durations 25 {posargs}
[testenv:flake8]
basepython = python3