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 — Enable `test_json` to pass with `PYTHON_LAZY_IMPORTS=all` · Issue #161660 · python/cpython

Enable test_json to pass with PYTHON_LAZY_IMPORTS=all #161660

New issue
Copy link
New issue
Copy link
Open
Open
Enable test_json to pass with PYTHON_LAZY_IMPORTS=all#161660
Copy link
Assignees
sobolevn
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@sobolevn
sobolevn
opened on Nov 9, 2026
Issue body actions

Blocked by #161618

cpython/Lib/test/lazy_imports_all_exclude.txt

Line 28 in 4f64990

test_json

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

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

Activity

  1. sobolevn
    self-assigned this
    on Nov 9, 2026
  2. sobolevn
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    testsTests in the Lib/test dirTests in the Lib/test dir
    on Nov 9, 2026
  3. sobolevn
    added a commit that references this issue on Nov 12, 2026

    pythongh-161660: Fix `test_json` with `PYTHON_LAZY_IMPORTS=all`

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

Metadata

Metadata

Assignees

  • @sobolevn
    sobolevn

Labels

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

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.