]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-119049: Fix incorrect display of warning which is constructed by C API (GH-119063)
authorKirill Podoprigora <kirill.bast9@mail.ru>
Thu, 16 May 2024 20:27:59 +0000 (23:27 +0300)
committerGitHub <noreply@github.com>
Thu, 16 May 2024 20:27:59 +0000 (20:27 +0000)
commit100c7ab00ab66a8c0d54582f35e38d8eb691743c
tree64dc41a7a3be5a41790d7c8c197eeedf294ab4fb
parent4702b7b5bdc07d046576b4126cf4e4f5f7145abb
gh-119049: Fix incorrect display of warning which is constructed by C API (GH-119063)

The source line was not displayed if the warnings module had not yet
been imported.
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