MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / close

Method close

tests/test_connect.py:1728–1729  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1726
1727 async def test_rejected_host_cannot_time_out_selected_connection(self):
1728 async def close():
1729 await asyncio.Future()
1730
1731 rejected = unittest.mock.Mock(spec=pg_connection.Connection)
1732 rejected.close.side_effect = close

Calls

no outgoing calls

Tested by

no test coverage detected