(factory, *args, **kwargs)
| 1764 | for connection_lost_first in (False, True): |
| 1765 | with self.subTest(connection_lost_first=connection_lost_first): |
| 1766 | async def interrupted_connector(factory, *args, **kwargs): |
| 1767 | proto = factory() |
| 1768 | if connection_lost_first: |
| 1769 | proto.connection_lost(None) |
| 1770 | else: |
| 1771 | self.loop.call_soon(proto.connection_lost, None) |
| 1772 | raise asyncio.CancelledError |
| 1773 | |
| 1774 | with unittest.mock.patch.object( |
| 1775 | self.loop, 'create_connection', interrupted_connector, |
nothing calls this directly
no test coverage detected