GeezerVison is showing github.com — gh-140870: Full coverage for _pyrepl._module_completer by loic-simon · Pull Request #143244 · python/cpython
Conversation
loic-simon
commented
Dec 28, 2025
•
edited by bedevere-app
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
(split from #140871 as recommanded by @tomasr8)
Add a few tests to get the coverage rate of _pyrepl._module_completer to ~100%:
% python -m coverage run --branch --source=_pyrepl._module_completer -m unittest Lib/test/test_pyrepl/test_pyrepl.py
.....................................s..................................................
----------------------------------------------------------------------
Ran 88 tests in 2.369s
OK (skipped=1)
% python -m coverage report --show-missing
Name Stmts Miss Branch BrPart Cover Missing
------------------------------------------------------------------------------
Lib/_pyrepl/_module_completer.py 267 1 104 1 99% 19
------------------------------------------------------------------------------
TOTAL 267 1 104 1 99%
The only statement left is the import under if TYPE_CHECKING, as expected.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks! The All required checks pass failed for some reason so I'm just gonna merge main to trigger a new run..
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
loic-simon reacted with thumbs up emoji
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks @loic-simon for the PR, and @tomasr8 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖
|
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.
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.