Skip to content

Commit 83e6ff3

Browse files
committed
mute pytest 3.12 warning
1 parent 2940e63 commit 83e6ff3

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
@@ -59,7 +59,11 @@ isort = { known-first-party = ['pydantic-core', 'tests'] }
5959
[tool.pytest.ini_options]
6060
testpaths = 'tests'
6161
log_format = '%(name)s %(levelname)s: %(message)s'
62-
filterwarnings = 'error'
62+
filterwarnings = [
63+
'error',
64+
# Work around https://github.com/pytest-dev/pytest/issues/10977 for Python 3.12
65+
'ignore:(ast\.Str|ast\.NameConstant|ast\.Num|Attribute s) is deprecated and will be removed.*:DeprecationWarning:',
66+
]
6367
timeout = 30
6468
xfail_strict = true
6569
# min, max, mean, stddev, median, iqr, outliers, ops, rounds, iterations

0 commit comments

Comments
 (0)