(loop)
| 1573 | |
| 1574 | |
| 1575 | async def test_dns_error(loop) -> None: |
| 1576 | connector = aiohttp.TCPConnector(loop=loop) |
| 1577 | connector._resolve_host = mock.AsyncMock( |
| 1578 | side_effect=OSError("dont take it serious") |
| 1579 | ) |
| 1580 | |
| 1581 | req = ClientRequest("GET", URL("http://www.python.org"), loop=loop) |
| 1582 | |
| 1583 | with pytest.raises(aiohttp.ClientConnectorError): |
| 1584 | await connector.connect(req, [], ClientTimeout()) |
| 1585 | |
| 1586 | await connector.close() |
| 1587 | |
| 1588 | |
| 1589 | async def test_get_pop_empty_conns(loop) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…