File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -574,8 +574,7 @@ async def test_json_transport_base_client_send_message_with_extensions(
574574 == 'https://example.com/test-ext/v1,https://example.com/test-ext/v2'
575575 )
576576
577- if hasattr (client , 'close' ):
578- await client .close ()
577+ await client .close ()
579578
580579
581580@pytest .mark .asyncio
@@ -636,8 +635,7 @@ async def test_json_transport_get_signed_base_card(
636635 assert result .name == agent_card .name
637636 assert len (result .signatures ) == 1
638637
639- if hasattr (transport , 'close' ):
640- await transport .close ()
638+ await transport .close ()
641639
642640
643641@pytest .mark .asyncio
@@ -705,8 +703,7 @@ async def test_client_get_signed_extended_card(
705703 assert result .signatures is not None
706704 assert len (result .signatures ) == 1
707705
708- if hasattr (client , 'close' ):
709- await client .close ()
706+ await client .close ()
710707
711708
712709@pytest .mark .asyncio
@@ -788,8 +785,7 @@ async def test_client_get_signed_base_and_extended_cards(
788785 assert result .name == extended_agent_card .name
789786 assert len (result .signatures ) == 1
790787
791- if hasattr (client , 'close' ):
792- await client .close ()
788+ await client .close ()
793789
794790
795791@pytest .mark .asyncio
You can’t perform that action at this time.
0 commit comments