test(client): filter known Starlette portal deprecation

This commit is contained in:
2026-10-06 18:29:50 -03:00
parent fa00b36e49
commit 1146dec1ac
3 changed files with 14 additions and 0 deletions
+6
View File
@@ -67,3 +67,9 @@ warn_untyped_fields = true
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
# Starlette 0.41.3 uses an alias deprecated by AnyIO 4.15. Keep the runtime
# versions used for compatibility captures; remove this test-only exception
# when upgrading Starlette. Upstream: https://github.com/Kludex/starlette/issues/3497
filterwarnings = [
'ignore:^The anyio\.abc\.BlockingPortal alias is deprecated, use anyio\.from_thread\.BlockingPortal instead\.$:DeprecationWarning:^starlette\.testclient$',
]