MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / assert_empty_iter

Function assert_empty_iter

tests/test_streaming.py:443–445  ·  view source on GitHub ↗
(iter: Iterator[ServerSentEvent] | AsyncIterator[ServerSentEvent])

Source from the content-addressed store, hash-verified

441 return next(iter)
442
443
444async def assert_empty_iter(iter: Iterator[ServerSentEvent] | AsyncIterator[ServerSentEvent]) -> None:
445 with pytest.raises((StopAsyncIteration, RuntimeError)):
446 await iter_next(iter)
447
448

Calls 1

iter_nextFunction · 0.70

Tested by

no test coverage detected