GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-144727: Add test for circular lazy import crash (#144727) by pablogsal · Pull Request #144838 · python/cpython

Conversation

@pablogsal

@pablogsal pablogsal commented Feb 15, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

  • Issue: Circular lazy import results in a crash #144727

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@pablogsal pablogsal added the skip news label Feb 15, 2026
@pablogsal
pablogsal requested review from brettcannon, ericsnowcurrently, ncoghlan and warsaw as code owners February 15, 2026 16:02
@bedevere-app bedevere-app Bot added awaiting core review tests Tests in the Lib/test dir labels Feb 15, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Feb 15, 2026
Circular lazy import results in a crash #144727
Closed
@pablogsal
pythongh-144727: Add test for circular lazy import crash (python#144727)
e8ea062
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 pythongh-144733 but no test was added at the time.
@pablogsal
pablogsal force-pushed the gh-144727-circular-lazy-import-test branch from 663c89f to e8ea062 Compare February 15, 2026 16:13
@pablogsal
pablogsal requested a review from DinoV as a code owner February 15, 2026 16:13
@pablogsal
pablogsal merged commit 5fe139c into python:main Feb 15, 2026
45 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@pablogsal
pablogsal deleted the gh-144727-circular-lazy-import-test branch February 15, 2026 18:36
@bedevere-app bedevere-app Bot removed the awaiting core review label Feb 15, 2026
brijkapadia pushed a commit to brijkapadia/cpython that referenced this pull request Feb 28, 2026
@pablogsal @brijkapadia
pythongh-144727: Add test for circular lazy import crash (python#144727…
baa8a32
…) (python#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 pythongh-144733 but no test was added at the time.
@Yhg1s Yhg1s added the topic-lazy-imports label Mar 17, 2026
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
@pablogsal @ljfp
pythongh-144727: Add test for circular lazy import crash (python#144727…
c75f9bd
…) (python#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 pythongh-144733 but no test was added at the time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@brettcannon brettcannon Awaiting requested review from brettcannon brettcannon is a code owner
@ericsnowcurrently ericsnowcurrently Awaiting requested review from ericsnowcurrently ericsnowcurrently is a code owner
@ncoghlan ncoghlan Awaiting requested review from ncoghlan ncoghlan is a code owner
@warsaw warsaw Awaiting requested review from warsaw warsaw is a code owner
@DinoV DinoV Awaiting requested review from DinoV

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

skip news tests Tests in the Lib/test dir topic-lazy-imports

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@pablogsal @Yhg1s
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.