From 2fa333e06fd24743f6069249c064b036ad4093d4 Mon Sep 17 00:00:00 2001 From: Alexsander Hamir Date: Fri, 9 Jan 2026 17:09:16 -0800 Subject: [PATCH] Add pytest warning filters for memory leak tests - Suppress Pydantic serializer warnings from mock server responses (non-critical) - Suppress pytest-asyncio event loop deprecation warnings (handled automatically) - Cleaner CI output for memory leak tests --- pyproject.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 18796defd64..eceb0dcb20d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -182,3 +182,9 @@ markers = [ "limit_leaks: mark test with memory limit for leak detection (e.g., '40 MB')", "no_parallel: mark test to run sequentially (not in parallel) - typically for memory measurement tests", ] +filterwarnings = [ + # Suppress Pydantic serializer warnings from mock server responses (non-critical for memory tests) + "ignore:.*PydanticSerializationUnexpectedValue.*:UserWarning:pydantic.main", + # Suppress pytest-asyncio event loop deprecation warning (handled automatically by pytest-asyncio) + "ignore:.*unclosed event loop.*:DeprecationWarning:pytest_asyncio.plugin", +]