You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When enabling PYTHONWARNDEFAULTENCODING, it triggers a warning in jsonschema (per PEP 597).
tests/test_scripts.py::TestNotebookDepsReader::test_one_code_block
/Users/jaraco/code/jaraco/pip-run/.tox/py/lib/python3.11/site-packages/jsonschema/validators.py:109: EncodingWarning: 'encoding' argument not specified
vocabulary = json.loads(path.read_text())
Probably that needs to be path.read_text(encoding='utf-8').
The text was updated successfully, but these errors were encountered:
jaraco
changed the title
EncodingWarning issued when PYTHON_WARN_DEFAULT_ENCODING=true
EncodingWarning issued when PYTHONWARNDEFAULTENCODING=true
Jun 23, 2023
When enabling PYTHONWARNDEFAULTENCODING, it triggers a warning in jsonschema (per PEP 597).
Probably that needs to be
path.read_text(encoding='utf-8')
.The text was updated successfully, but these errors were encountered: