]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-144727: Add test for circular lazy import crash (#144727) (#144838)
authorPablo Galindo Salgado <Pablogsal@gmail.com>
Sun, 15 Feb 2026 18:36:47 +0000 (18:36 +0000)
committerGitHub <noreply@github.com>
Sun, 15 Feb 2026 18:36:47 +0000 (18:36 +0000)
commit5fe139cc39fb8110b3d6cbed6224d7c8f5d91987
tree385bb157d098e4b2e90daa5447e46db4808f6090
parent23c488d6197191d355be6733699a295c20806932
gh-144727: Add test for circular lazy import crash (#144727) (#144838)

Add a regression test ensuring that circular lazy imports raise a proper
error (ImportCycleError) instead of crashing with a segfault. The crash
was fixed in gh-144733 but no test was added at the time.
Lib/test/test_import/test_lazy_imports.py