]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-122255: Synchronize warnings in C and Python implementations of the warnings modul...
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 14 Nov 2025 14:49:28 +0000 (16:49 +0200)
committerGitHub <noreply@github.com>
Fri, 14 Nov 2025 14:49:28 +0000 (16:49 +0200)
commit8deaa9393eadf84e6e571be611e0c5a377abf7cd
tree533933a4dd6efd6f0d85d7c8e617d68d8fb0343c
parentc10fa5be6167b1338ad194f9fe4be4782e025175
gh-122255: Synchronize warnings in C and Python implementations of the warnings module (GH-122824)

In the linecache module and in the Python implementation of the
warnings module, a DeprecationWarning is issued when
m.__loader__ differs from m.__spec__.loader (like in the C
implementation of the warnings module).
Lib/linecache.py
Lib/test/test_linecache.py
Lib/test/test_warnings/__init__.py
Misc/NEWS.d/next/Library/2024-08-08-12-39-36.gh-issue-122255.J_gU8Y.rst [new file with mode: 0644]