]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-153236: Propagate lazy submodule import errors (GH-153237) (#153936)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 18 Jul 2026 16:04:40 +0000 (18:04 +0200)
committerGitHub <noreply@github.com>
Sat, 18 Jul 2026 16:04:40 +0000 (16:04 +0000)
commit0cb0723178c975eec1d5ca1ea6dc72d2eda13e16
tree79c30e9c4c2d5eaa67eecb6706238a8360cf988a
parent13e7aedb59230f941419b5e64977e8f8b6db871f
[3.15] gh-153236: Propagate lazy submodule import errors (GH-153237) (#153936)

gh-153236: Propagate lazy submodule import errors (GH-153237)
(cherry picked from commit 0a09dafb03dae17895d4a86af04985e373bbdceb)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
12 files changed:
Include/internal/pycore_global_objects_fini_generated.h
Include/internal/pycore_global_strings.h
Include/internal/pycore_import.h
Include/internal/pycore_runtime_init_generated.h
Include/internal/pycore_unicodeobject_generated.h
Lib/importlib/_bootstrap.py
Lib/test/test_lazy_import/__init__.py
Lib/test/test_lazy_import/data/missing_dependency.py [new file with mode: 0644]
Lib/test/test_lazy_import/data/self_named_module_not_found.py [new file with mode: 0644]
Misc/NEWS.d/next/Core_and_Builtins/2026-07-06-16-30-00.gh-issue-153236.lazy-import-errors.rst [new file with mode: 0644]
Objects/moduleobject.c
Python/import.c