Enable the opt-in EncodingWarning

https://docs.python.org/3/library/io.html#io-encoding-warning
This commit is contained in:
Adam Turner 2022-04-16 19:13:34 +01:00
parent 301c7bdf57
commit 26c5c40b50
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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