mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Enable the opt-in EncodingWarning
https://docs.python.org/3/library/io.html#io-encoding-warning
This commit is contained in:
parent
301c7bdf57
commit
26c5c40b50
4
Makefile
4
Makefile
@ -66,11 +66,11 @@ doclinter:
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
@$(PYTHON) -X dev -m pytest -v $(TEST)
|
||||
@$(PYTHON) -X dev -X warn_default_encoding -m pytest -v $(TEST)
|
||||
|
||||
.PHONY: covertest
|
||||
covertest:
|
||||
@$(PYTHON) -X dev -m pytest -v --cov=sphinx --junitxml=.junit.xml $(TEST)
|
||||
@$(PYTHON) -X dev -X warn_default_encoding -m pytest -v --cov=sphinx --junitxml=.junit.xml $(TEST)
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
|
4
tox.ini
4
tox.ini
@ -28,7 +28,7 @@ setenv =
|
||||
PYTHONWARNINGS = all
|
||||
PYTEST_ADDOPTS = {env:PYTEST_ADDOPTS:} --color yes
|
||||
commands=
|
||||
python -X dev -m pytest --durations 25 {posargs}
|
||||
python -X dev -X warn_default_encoding -m pytest --durations 25 {posargs}
|
||||
|
||||
[testenv:du-latest]
|
||||
commands =
|
||||
@ -83,7 +83,7 @@ description =
|
||||
extras =
|
||||
docs
|
||||
commands =
|
||||
python setup.py build_sphinx {posargs}
|
||||
python -X dev -X warn_default_encoding setup.py build_sphinx {posargs}
|
||||
|
||||
[testenv:docslint]
|
||||
basepython = python3
|
||||
|
Loading…
Reference in New Issue
Block a user