GeezerVison is showing github.com — gh-145334: Make lazy import tests discoverable by johnslavik · Pull Request #145336 · python/cpython
Conversation
johnslavik
commented
Feb 27, 2026
•
edited by bedevere-app
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
johnslavik
changed the title
gh-145334: Move test_import.test_lazy_imports to test.test_lazy_import
gh-145334: Move test.test_import.test_lazy_imports to test.test_lazy_import
Feb 27, 2026
johnslavik
commented
Feb 27, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
Conflicts. Sorry, I'll force-push this one time, practicality beats purity.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
johnslavik
changed the title
gh-145334: Move test.test_import.test_lazy_imports to test.test_lazy_import
gh-145334: Make lazy import tests discoverable
Feb 28, 2026
|
I have cloned this locally and run a bunch of checks to see that the new files make sense and we are not loosing anything here so I am satisfied. Thanks a lot @johnslavik! Great work 🥇
|
johnslavik reacted with heart emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
We should test with an installed python because of the makefile changes. Will do this now
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
$ ./configure --prefix=$PWD/inst -C
$ make install -j
$ main fix-test-layout-lazy-imports ? ❯ ./inst/bin/python3 -m test test_lazy_import
Using random seed: 2114320666
0:00:00 load avg: 7.47 Run 1 test sequentially in a single process
0:00:00 load avg: 7.47 [1/1] test_lazy_import
BAR_MODULE_LOADED
0:00:00 load avg: 7.47 [1/1] test_lazy_import passed
== Tests result: SUCCESS ==
1 test OK.
Total duration: 655 ms
Total tests: run=91
Total test files: run=1/1
Result: SUCCESS
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ljfp
pushed a commit
to ljfp/cpython
that referenced
this pull request
Apr 25, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
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.
|