Skip to content

Commit 867bacb

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_asyncio/test_taskgroups.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,6 +1081,8 @@ async def throw_error():
10811081
tg.create_task(throw_error())
10821082
except* MyError:
10831083
pass
1084+
else:
1085+
self.fail("should have raised one MyError in group")
10841086

10851087
await asyncio.sleep(0)
10861088

0 commit comments

Comments
 (0)