Skip to content

Commit c460fa9

Browse files
authored
Update Lib/test/test_asyncio/test_taskgroups.py
1 parent 867bacb commit c460fa9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_asyncio/test_taskgroups.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,10 @@ async def throw_error():
10841084
else:
10851085
self.fail("should have raised one MyError in group")
10861086

1087+
# if this test fails this current task will be cancelled
1088+
# outside the TG and inside unittest internals
1089+
# we add somewhere to cancel here so the test failure message
1090+
# is more understandable
10871091
await asyncio.sleep(0)
10881092

10891093

0 commit comments

Comments
 (0)