Skip to content

Commit 7d93a3e

Browse files
committed
chore(tests): suppress third-party deprecation warnings
Add pytest filterwarnings for two third-party deprecation warnings that produce 43 warnings per test run: - torch.jit.script_method: internal to PyTorch, triggered by sentence-transformers during model loading - redisvl get_async_redis_connection: internal to redisvl's SemanticCache (our code already uses AsyncRedis.from_url directly)
1 parent 026b821 commit 7d93a3e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ filterwarnings = [
6363
"ignore::DeprecationWarning:testcontainers.redis",
6464
# Ignore trustcall library's deprecated import (used by langmem)
6565
"ignore:Importing Send from langgraph.constants is deprecated.*:langgraph.errors.LangGraphDeprecatedSinceV10:trustcall._base",
66+
# Ignore PyTorch internal deprecation triggered by sentence-transformers during model loading
67+
"ignore::DeprecationWarning:torch.jit._script",
68+
# Ignore redisvl internal deprecation in SemanticCache (our code already uses AsyncRedis.from_url directly)
69+
"ignore:get_async_redis_connection will become async:DeprecationWarning:redisvl.redis.connection",
6670
]
6771

6872
[tool.poetry.scripts]

0 commit comments

Comments
 (0)