Skip to content

Commit 42c0297

Browse files
authored
Ignore depr warnings inside pytest on 3.12 (#483)
These warnings otherwise would abort the test suite. See pytest-dev/pytest#10977.
1 parent 272d0d8 commit 42c0297

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎pytest.ci.ini‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
[pytest]
22
addopts = --cov=frozenlist --cov-report term-missing:skip-covered -v -rxXs
3-
filterwarnings = error
43
junit_suite_name = frozenlist_test_suite
54
norecursedirs = dist docs build .tox .eggs
65
minversion = 3.8.2
76
testpaths = tests/
7+
filterwarnings =
8+
error
9+
# https://github.com/pytest-dev/pytest/issues/10977 and https://github.com/pytest-dev/pytest/pull/10894
10+
ignore:ast\.(Num|NameConstant|Str) is deprecated and will be removed in Python 3\.14; use ast\.Constant instead:DeprecationWarning:_pytest
11+
ignore:Attribute s is deprecated and will be removed in Python 3\.14; use value instead:DeprecationWarning:_pytest

‎pytest.ini‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
[pytest]
22
addopts = --cov=frozenlist
3-
filterwarnings = error
43
junit_suite_name = frozenlist_test_suite
54
norecursedirs = dist docs build .tox .eggs
65
minversion = 3.8.2
76
testpaths = tests/
7+
filterwarnings =
8+
error
9+
# https://github.com/pytest-dev/pytest/issues/10977 and https://github.com/pytest-dev/pytest/pull/10894
10+
ignore:ast\.(Num|NameConstant|Str) is deprecated and will be removed in Python 3\.14; use ast\.Constant instead:DeprecationWarning:_pytest
11+
ignore:Attribute s is deprecated and will be removed in Python 3\.14; use value instead:DeprecationWarning:_pytest

0 commit comments

Comments
 (0)