Skip to content

Commit 1b8ce0a

Browse files
committed
codecov
1 parent 0e34b85 commit 1b8ce0a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/trio/_tests/test_channel.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,5 +614,9 @@ async def agen() -> AsyncGenerator[int]:
614614
yield i
615615
event.set()
616616

617-
async with agen() as _:
617+
async with agen() as recv_chan:
618618
await event.wait()
619+
j = 0
620+
async for i in recv_chan:
621+
assert i == j
622+
j += 1

0 commit comments

Comments
 (0)