]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-119049: Fix incorrect display of warning which is constructed by C API...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 17 May 2024 15:16:58 +0000 (17:16 +0200)
committerGitHub <noreply@github.com>
Fri, 17 May 2024 15:16:58 +0000 (18:16 +0300)
commitced71d39cfc2ab6e227824fe891101dcb473c2e3
tree80b0bb5f4fe7fbfe0389c5a37097b5213a37632b
parentada4ad0e247279f54e7e2f90397075fb65bb9b5d
[3.13] gh-119049: Fix incorrect display of warning which is constructed by C API (GH-119063) (GH-119106)

The source line was not displayed if the warnings module had not yet
been imported.
(cherry picked from commit 100c7ab00ab66a8c0d54582f35e38d8eb691743c)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Lib/test/test_capi/test_exceptions.py
Misc/NEWS.d/next/Core and Builtins/2024-05-16-23-02-03.gh-issue-119049.qpd_S-.rst [new file with mode: 0644]
Modules/_testcapimodule.c
Python/_warnings.c