MCPcopy
hub / github.com/encode/httpx / test_async_client_new_request_send_timeout

Function test_async_client_new_request_send_timeout

tests/test_timeouts.py:48–55  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

46
47@pytest.mark.anyio
48async 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 )

Callers

nothing calls this directly

Calls 2

sendMethod · 0.45
copy_withMethod · 0.45

Tested by

no test coverage detected