Commit bd97ffd
committed
gh-146194: Fix nested KeyboardInterrupt handling in asyncio
- Modify _on_sigint to cancel main task on every SIGINT
- Allow nested cancellations to propagate correctly through multiple levels
- Add test_nested_keyboardinterrupt_handling to test_runners.py
- Add NEWS entry
Fixes issue where third Ctrl+C would crash with:
'Task was destroyed but it is pending!'1 parent 2976259 commit bd97ffd
File tree
2 files changed
+8
-11
lines changed- Misc/NEWS.d/next/Library
2 files changed
+8
-11
lines changedLines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments