Skip to content
Prev Previous commit
Next Next commit
Update Lib/test/test_asyncio/test_taskgroups.py
  • Loading branch information
graingert authored Jan 20, 2025
commit c460fa9e45217dbf2efec8295d4dc9065663f41d
4 changes: 4 additions & 0 deletions Lib/test/test_asyncio/test_taskgroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,10 @@ async def throw_error():
else:
self.fail("should have raised one MyError in group")

# if this test fails this current task will be cancelled
# outside the TG and inside unittest internals
# we add somewhere to cancel here so the test failure message
# is more understandable
Comment thread
kumaraditya303 marked this conversation as resolved.
Outdated
await asyncio.sleep(0)
Comment thread
graingert marked this conversation as resolved.


Expand Down