GeezerVison is showing github.com — Add tests for command-line interface · Issue #131178 · python/cpython
Add tests for command-line interface #131178DescriptionWhile working on #130160 and #93096 it was decided that it would be worth paying attention to the problem of lack of tests for command line interface.
List of all cli modules is in the documentation: https://docs.python.org/dev/library/cmdline.html
Many modules are missing command line interface tests, so I suggest using this issue to submit PRs for now only for well-documented interfaces, for example:
TODO: Make sure all documented have tests for CLI (others are not so important as it has not been decided what to do with them yet)
You can use PR #127759 for dis module or #118132 for random module as a reference.
And I also suggest using subprocess.Popen to allocate a separate resource since some modules can block a lot of time.
Important For those who want to work on the issue, please:
- Select one module for which tests will be improved. It's easier to review and backport.
- Open a pull request with the following title:
gh-131178: Add tests for `MODULE_NAME` command-line interface
Linked PRs
Reacted by Sergey Miryanov and Weilin Du Activityhugovk commented on Mar 13, 2025 Reacted by Semyon Moroz and QuinzyW sobolevn commented on Mar 13, 2025 @donbarbos I assigned this issue to you, since you mentioned that you are working on it :) added 4 commits that reference this issue on Nov 1, 2026gh-131178: Fix test_cli_retrieve_file when stdout is StringIO in test…
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|