Skip to content

Commit 4c0174a

Browse files
author
Jianke LIN
committed
test(streamable-http): exempt dropped async generator yield
1 parent e39f069 commit 4c0174a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/client/test_streamable_http.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,12 @@ async def __aexit__(self, *args: object) -> None:
123123
return None
124124

125125
async def aiter_sse(self) -> object:
126-
yield SimpleNamespace(event="message", data="", id=f"event-{reconnect_attempts}", retry=0)
126+
yield SimpleNamespace( # pragma: lax no cover - coverage.py drops this nested async-generator yield
127+
event="message",
128+
data="",
129+
id=f"event-{reconnect_attempts}",
130+
retry=0,
131+
)
127132

128133
def connect_sse(*args: object, **kwargs: object) -> PrimingOnlyEventSource:
129134
return PrimingOnlyEventSource()

0 commit comments

Comments
 (0)