Skip to content

Commit f27b670

Browse files
authored
[build] Adjust warning filter to ignore ast deprecation warnings triggered by pytest's assertion rewriting. (#558)
Signed-off-by: Michael Seifert <[email protected]>
1 parent 75b47c6 commit f27b670

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

setup.cfg

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ addopts = -rsx --tb=short
7070
testpaths = tests
7171
asyncio_mode = auto
7272
junit_family=xunit2
73-
filterwarnings = error
74-
73+
filterwarnings =
74+
error
75+
# https://github.com/pytest-dev/pytest/issues/10977
76+
ignore:ast\.(Num|NameConstant|Str).*:DeprecationWarning:_pytest
77+
ignore:Attribute s is deprecated.*:DeprecationWarning:_pytest
7578
[flake8]
7679
max-line-length = 88

0 commit comments

Comments
 (0)