mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
When a task catches CancelledError and raises some other error, the other error should not silently be suppressed. Any scenario where a task crashes in cleanup upon cancellation will now result in an ExceptionGroup wrapping the crash(es) instead of propagating CancelledError and ignoring the side errors. NOTE: This represents a change in behavior (hence the need to change several tests). But it is only an edge case. Co-authored-by: Thomas Grainger <tagrain@gmail.com> |
||
|---|---|---|
| .. | ||
| Build | ||
| C API | ||
| Core and Builtins | ||
| Documentation | ||
| IDLE | ||
| Library | ||
| macOS | ||
| Security | ||
| Tests | ||
| Tools-Demos | ||
| Windows | ||