From a03fbd5188d0bcf99145263c30b5e801ecd12455 Mon Sep 17 00:00:00 2001 From: Alexsander Hamir Date: Fri, 9 Jan 2026 17:18:13 -0800 Subject: [PATCH] Improve pytest warning filters for Pydantic serializer warnings - Added more specific filter for Pydantic serializer warnings from mock server - Filters both by message pattern and module to ensure all warnings are suppressed - Cleaner CI output for memory leak tests --- pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index eceb0dcb20d..03a73f38e2d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -184,7 +184,9 @@ markers = [ ] filterwarnings = [ # Suppress Pydantic serializer warnings from mock server responses (non-critical for memory tests) - "ignore:.*PydanticSerializationUnexpectedValue.*:UserWarning:pydantic.main", + # These occur because the mock server returns a simplified response format + "ignore:Pydantic serializer warnings:UserWarning", + "ignore::UserWarning:pydantic.main", # Suppress pytest-asyncio event loop deprecation warning (handled automatically by pytest-asyncio) - "ignore:.*unclosed event loop.*:DeprecationWarning:pytest_asyncio.plugin", + "ignore::DeprecationWarning:pytest_asyncio.plugin", ]