summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-08-17 17:04:59 (GMT)
committerGitHub <noreply@github.com>2022-08-17 17:04:59 (GMT)
commit36c114ab11d478c9ede246035606c12fc080e6ff (patch)
tree1ea0cda50707031ab99942c2adfd59242d0a1e0d /Misc/NEWS.d
parent2bb363cfcd7563fdd29ac93563f95b8a5205b008 (diff)
downloadcpython-36c114ab11d478c9ede246035606c12fc080e6ff.zip
cpython-36c114ab11d478c9ede246035606c12fc080e6ff.tar.gz
cpython-36c114ab11d478c9ede246035606c12fc080e6ff.tar.bz2
GH-95704: Don't suppress errors from tasks when TG is cancelled (GH-95761)
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> (cherry picked from commit f51f54f39d384da63be622bcdc9cf4cfb43bad3d) Co-authored-by: Guido van Rossum <guido@python.org>
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2022-08-08-01-42-11.gh-issue-95704.MOPFfX.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-08-08-01-42-11.gh-issue-95704.MOPFfX.rst b/Misc/NEWS.d/next/Library/2022-08-08-01-42-11.gh-issue-95704.MOPFfX.rst
new file mode 100644
index 0000000..31f9fc6
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-08-08-01-42-11.gh-issue-95704.MOPFfX.rst
@@ -0,0 +1,2 @@
+When a task catches :exc:`asyncio.CancelledError` and raises some other error,
+the other error should generally not silently be suppressed.