Skip to content

Commit

Permalink
change generator exit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Jan 30, 2024
1 parent 2a168e5 commit 8cf3c3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/extract/test_extract_pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,8 @@ async def long_gen():
close_pipe_yielding = False
except GeneratorExit:
close_pipe_got_exit = True
except asyncio.CancelledError:
close_pipe_got_exit = True

# execute in a thread
async def raise_gen(item: int):
Expand Down

0 comments on commit 8cf3c3c

Please sign in to comment.