Skip to content

Enable test_json to pass with PYTHON_LAZY_IMPORTS=all #161660

Open

Description

@sobolevn

Blocked by #161618

I need force_eager_imports here as well, so I can change how import_fresh_module works. Because with lazy imports it does not respect these lines:

cjson = import_helper.import_fresh_module('json', fresh=['_json'])
pyjson = import_helper.import_fresh_module('json', blocked=['_json'])

Refs #161617

Linked PRs

Activity

  1. self-assigned this
    on Nov 9, 2026
  2. added
    type-bugAn unexpected behavior, bug, or error
    testsTests in the Lib/test dir
    on Nov 9, 2026
  3. added a commit that references this issue on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions