]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129354: Use PyErr_FormatUnraisable() function (#129523)
authorVictor Stinner <vstinner@python.org>
Wed, 5 Feb 2025 10:31:59 +0000 (11:31 +0100)
committerGitHub <noreply@github.com>
Wed, 5 Feb 2025 10:31:59 +0000 (10:31 +0000)
commita25042e6d2b71651e93ff90c361ad763c0368872
tree284561ffe21412b1154ee9ee43f79970bfffbe07
parentdc804ffb2f7cfaf60916b36f3d5cac9c00e4f1ea
gh-129354: Use PyErr_FormatUnraisable() function (#129523)

Replace PyErr_WriteUnraisable() with PyErr_FormatUnraisable().

Update tests:

* test_coroutines
* test_exceptions
* test_generators
* test_struct
Lib/test/test_coroutines.py
Lib/test/test_exceptions.py
Lib/test/test_generators.py
Lib/test/test_struct.py
Objects/genobject.c
Objects/typeobject.c
Python/_warnings.c