]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-128030: Avoid error from PyModule_GetFilenameObject for non-module (#128047)
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>
Fri, 20 Dec 2024 08:22:26 +0000 (00:22 -0800)
committerGitHub <noreply@github.com>
Fri, 20 Dec 2024 08:22:26 +0000 (00:22 -0800)
commit45e6dd63b88a782f2ec96ab1da54eb5a074d8f4c
treefad1d18683f0a9bd13d538c3626bedc0988653d3
parentdaa260ebb1c1b20321e7f26df7c9dbd35d4edcbf
gh-128030: Avoid error from PyModule_GetFilenameObject for non-module (#128047)

I missed the extra `PyModule_Check` in #127660 because I was looking at
3.12 as the base implementation for import from. This meant that I
missed the `PyModuleCheck` introduced in #112661.
Lib/test/test_import/__init__.py
Misc/NEWS.d/next/Core_and_Builtins/2024-12-17-22-28-15.gh-issue-128030.H1ptOD.rst [new file with mode: 0644]
Python/ceval.c