(server)
| 46 | |
| 47 | @pytest.mark.anyio |
| 48 | async def test_async_client_new_request_send_timeout(server): |
| 49 | timeout = httpx.Timeout(1e-6) |
| 50 | |
| 51 | async with httpx.AsyncClient(timeout=timeout) as client: |
| 52 | with pytest.raises(httpx.TimeoutException): |
| 53 | await client.send( |
| 54 | httpx.Request("GET", server.url.copy_with(path="/slow_response")) |
| 55 | ) |