Skip to content

gh-161660: Fix test_json with PYTHON_LAZY_IMPORTS=all - #161866

Merged
sobolevn merged 4 commits into
python:mainfrom
sobolevn:issue-161660
Nov 18, 2026
Merged

sobolevn merged 4 commits into
python:mainfrom
sobolevn:issue-161660

Conversation

@sobolevn

@sobolevn sobolevn commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

import_fresh_module is meant to be eager. It can't really be a lazy import, because it forces a lot of environment changes.

@sergey-miryanov sergey-miryanov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@sobolevn
sobolevn merged commit b107dc2 into python:main Nov 18, 2026
55 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington-app

Copy link
Copy Markdown

Sorry, @sobolevn, I could not cleanly backport this to 3.15 due to a conflict.

Please backport manually with cherry_picker, see the devguide for more information.

cherry_picker b107dc253f2e788693d922e76c74501c91f7d42e 3.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants