Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(tests): remove dead code in test_allm_passthrough_route_429_streaming_raises

KnyazSheae7695c9966
diff --git a/tests/test_litellm/passthrough/test_passthrough_main.py b/tests/test_litellm/passthrough/test_passthrough_main.py
index 6cd6b754c07..fb67aa6f3e4 100644
--- a/tests/test_litellm/passthrough/test_passthrough_main.py
+++ b/tests/test_litellm/passthrough/test_passthrough_main.py
@@ -716,15 +716,6 @@ async def test_allm_passthrough_route_429_streaming_raises():
litellm_logging_obj=mock_logging_obj,
)
- # result is an async generator — consuming it must raise, not silently yield error bytes
- chunks = []
- async def _drain():
- async for chunk in result: # type: ignore[union-attr]
- chunks.append(chunk)
-
- with pytest.raises(httpx.HTTPStatusError) as exc_info:
- await _drain()
-
assert exc_info.value.response.status_code == 429