mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
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
This commit is contained in:
parent
3b793eda66
commit
2fa333e06f
1 changed files with 6 additions and 0 deletions
|
|
@ -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",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue