Skip to content

Commit 712208b

Browse files
committed
formatting'
1 parent 17550c8 commit 712208b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/strands/agent/test_agent.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,9 @@ async def test_agent_cleanup_async(agent):
915915
@pytest.mark.asyncio
916916
async def test_agent_cleanup_async_handles_exceptions(agent):
917917
"""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")):
918+
with unittest.mock.patch.object(
919+
agent.tool_registry, "cleanup_async", side_effect=Exception("Registry cleanup failed")
920+
):
919921
# Should not raise exception despite registry cleanup failing
920922
await agent.cleanup_async()
921923

0 commit comments

Comments
 (0)