Skip to content

Commit

Permalink
Ignore depr warnings inside pytest on 3.12
Browse files Browse the repository at this point in the history
These warnings otherwise would abort the test suite. See
pytest-dev/pytest#10977.
  • Loading branch information
mjpieters committed Jun 7, 2023
1 parent 3ae681b commit f1d43fe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ license_file = LICENSE

[tool:pytest]
addopts = --cov=yarl -v
filterwarnings=error
norecursedirs = dist docs build .tox .eggs venv virtualenv .git
minversion = 3.8.2
testpaths = tests/
junit_suite_name = yarl_test_suite

filterwarnings =
error
# https://github.com/pytest-dev/pytest/issues/10977 and https://github.com/pytest-dev/pytest/pull/10894
ignore:ast\.(Num|NameConstant|Str) is deprecated and will be removed in Python 3\.14; use ast\.Constant instead:DeprecationWarning:_pytest
ignore:Attribute s is deprecated and will be removed in Python 3\.14; use value instead:DeprecationWarning:_pytest

[pep8]
max-line-length=79
Expand Down

0 comments on commit f1d43fe

Please sign in to comment.