-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
gh-143547: Fix PyErr_FormatUnraisable() fallback #143557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hold a strong reference to 'hook' while calling the default unraisable took to log hook failure. Fix test_sys.UnraisableHookTest: use the right decorator function to disable colors. Previously, tests were always skipped.
ZeroIntensity
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks user-facing, so I think it would be a good idea to add a news entry, but I'll leave the decision up to you. The rest of the PR looks good to me.
Ok, I added a NEWS entry. |
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
|
Sorry, @vstinner, I could not cleanly backport this to |
|
Sorry, @vstinner, I could not cleanly backport this to |
|
GH-143603 is a backport of this pull request to the 3.14 branch. |
Hold a strong reference to 'hook' while calling the default unraisable took to log hook failure. (cherry picked from commit 39a2bcf)
Hold a strong reference to 'hook' while calling the default unraisable took to log hook failure.
Fix test_sys.UnraisableHookTest: use the right decorator function to disable colors. Previously, tests were always skipped.
sys.unraisablehookfails and falls back to default logger #143547