We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17550c8 commit 712208bCopy full SHA for 712208b
tests/strands/agent/test_agent.py
@@ -915,7 +915,9 @@ async def test_agent_cleanup_async(agent):
915
@pytest.mark.asyncio
916
async def test_agent_cleanup_async_handles_exceptions(agent):
917
"""Test that agent cleanup_async handles exceptions gracefully."""
918
- with unittest.mock.patch.object(agent.tool_registry, "cleanup_async", side_effect=Exception("Registry cleanup failed")):
+ with unittest.mock.patch.object(
919
+ agent.tool_registry, "cleanup_async", side_effect=Exception("Registry cleanup failed")
920
+ ):
921
# Should not raise exception despite registry cleanup failing
922
await agent.cleanup_async()
923
0 commit comments