summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-11-12 02:20:43 +0900
committerGitHub <noreply@github.com>2020-11-12 02:20:43 +0900
commit64fb1e56242d93ee0e8c317ab9e7643242b99658 (patch)
tree8c33510feba5bf09b28568e4cd917b37f27f9ad6
parent386929ec0f07ba1a773bdf29f609ee7c51d054ef (diff)
parent22a4ed531c1c22416e92409408b78933cb01cf00 (diff)
downloadsphinx-git-64fb1e56242d93ee0e8c317ab9e7643242b99658.tar.gz
Merge pull request #8411 from francoisfreitag/devmode
Run tests with Python Development mode
-rw-r--r--Makefile4
-rw-r--r--tox.ini2
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9cff012d4..5ba113dc3 100644
--- a/Makefile
+++ b/Makefile
@@ -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:
diff --git a/tox.ini b/tox.ini
index 5bb5b4639..dbb705a3a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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