Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
Closed
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixesrelease-blockertopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
importasyncioclassMyException(Exception): passasyncdefasync_fn(): awaitasyncio.sleep(0) raiseMyExceptionasyncdefmain(): task=asyncio.current_task() try: asyncwithasyncio.TaskGroup() astg: tg.create_task(async_fn()) try: awaitasyncio.sleep(1) exceptasyncio.CancelledError: pass except* MyException: print("done!") print(f"{task.cancelling()=} should be 0") asyncio.run(main())Metadata
Metadata
Assignees
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixesrelease-blockertopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Done