gh-143547: Fix PyErr_FormatUnraisable() fallback#143557
gh-143547: Fix PyErr_FormatUnraisable() fallback#143557vstinner merged 4 commits intopython:mainfrom
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.
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)
…GH-143557) (pythonGH-143603) pythongh-143547: Fix PyErr_FormatUnraisable() fallback (pythonGH-143557) Hold a strong reference to 'hook' while calling the default unraisable took to log hook failure. (cherry picked from commit 1d0baf1) Co-authored-by: Victor Stinner <[email protected]> (cherry picked from commit 39a2bcf)
…H-143603) (#143612) [3.14] gh-143547: Fix PyErr_FormatUnraisable() fallback (GH-143557) (GH-143603) gh-143547: Fix PyErr_FormatUnraisable() fallback (GH-143557) Hold a strong reference to 'hook' while calling the default unraisable took to log hook failure. (cherry picked from commit 1d0baf1) (cherry picked from commit 39a2bcf) Co-authored-by: Victor Stinner <[email protected]>
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.
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.
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