test_retrying_timeout_errors_doesnt_leak() — anthropic-sdk-python Function Reference
Architecture documentation for the test_retrying_timeout_errors_doesnt_leak() function in test_client.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 25054da4_816c_4fb6_7cdb_ff275927e64a["test_retrying_timeout_errors_doesnt_leak()"] 9bf4cfe0_e3b0_70de_25ac_2113c8918900["TestAsyncAnthropic"] 25054da4_816c_4fb6_7cdb_ff275927e64a -->|defined in| 9bf4cfe0_e3b0_70de_25ac_2113c8918900 ad041f22_e636_0478_448a_2c9d549ef106["test_retrying_timeout_errors_doesnt_leak()"] ad041f22_e636_0478_448a_2c9d549ef106 -->|calls| 25054da4_816c_4fb6_7cdb_ff275927e64a ad041f22_e636_0478_448a_2c9d549ef106["test_retrying_timeout_errors_doesnt_leak()"] 25054da4_816c_4fb6_7cdb_ff275927e64a -->|calls| ad041f22_e636_0478_448a_2c9d549ef106 1555a14d_ad31_ef11_8c05_4240241d1d97["_get_open_connections()"] 25054da4_816c_4fb6_7cdb_ff275927e64a -->|calls| 1555a14d_ad31_ef11_8c05_4240241d1d97 style 25054da4_816c_4fb6_7cdb_ff275927e64a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_client.py lines 1867–1884
async def test_retrying_timeout_errors_doesnt_leak(
self, respx_mock: MockRouter, async_client: AsyncAnthropic
) -> None:
respx_mock.post("/v1/messages").mock(side_effect=httpx.TimeoutException("Test timeout error"))
with pytest.raises(APITimeoutError):
await async_client.messages.with_streaming_response.create(
max_tokens=1024,
messages=[
{
"content": "Hello, world",
"role": "user",
}
],
model="claude-opus-4-6",
).__aenter__()
assert _get_open_connections(async_client) == 0
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_retrying_timeout_errors_doesnt_leak() do?
test_retrying_timeout_errors_doesnt_leak() is a function in the anthropic-sdk-python codebase, defined in tests/test_client.py.
Where is test_retrying_timeout_errors_doesnt_leak() defined?
test_retrying_timeout_errors_doesnt_leak() is defined in tests/test_client.py at line 1867.
What does test_retrying_timeout_errors_doesnt_leak() call?
test_retrying_timeout_errors_doesnt_leak() calls 2 function(s): _get_open_connections, test_retrying_timeout_errors_doesnt_leak.
What calls test_retrying_timeout_errors_doesnt_leak()?
test_retrying_timeout_errors_doesnt_leak() is called by 1 function(s): test_retrying_timeout_errors_doesnt_leak.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free