Skip to content

Commit 7dfcde8

Browse files
committed
mute pytest 3.12 warning
1 parent d643594 commit 7dfcde8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ isort = { known-first-party = ['pydantic_core', 'tests'] }
6565
[tool.pytest.ini_options]
6666
testpaths = 'tests'
6767
log_format = '%(name)s %(levelname)s: %(message)s'
68-
filterwarnings = 'error'
68+
filterwarnings = [
69+
'error',
70+
# Work around https://github.com/pytest-dev/pytest/issues/10977 for Python 3.12
71+
'ignore:(ast\.Str|ast\.NameConstant|ast\.Num|Attribute s) is deprecated and will be removed.*:DeprecationWarning:',
72+
]
6973
timeout = 30
7074
xfail_strict = true
7175
# min, max, mean, stddev, median, iqr, outliers, ops, rounds, iterations

0 commit comments

Comments
 (0)