Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[3.11] gh-102780: Fix uncancel() call in asyncio timeouts (GH-102815) #102923

Merged
merged 1 commit into from
Mar 22, 2023

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Mar 22, 2023

Also use raise TimeOut from <CancelledError instance> so that the CancelledError is set
in the __cause__ field rather than in the __context__ field.

(cherry picked from commit 04adf2d)

Co-authored-by: Kristján Valur Jónsson sweskman@gmail.com
Co-authored-by: Guido van Rossum gvanrossum@gmail.com
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com

…2815)

Also use `raise TimeOut from <CancelledError instance>` so that the CancelledError is set
in the `__cause__` field rather than in the `__context__` field.

(cherry picked from commit 04adf2d)

Co-authored-by: Kristján Valur Jónsson <sweskman@gmail.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@miss-islington miss-islington merged commit a9ece4a into python:3.11 Mar 22, 2023
@miss-islington miss-islington deleted the backport-04adf2d-3.11 branch March 22, 2023 18:23
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants