FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-131178: Add CLI tests for pydoc module by tangyuan0821 · Pull Request #151971 · python/cpython · GitHub

/ cpython Public

gh-131178: Add CLI tests for pydoc module - #151971

Open
tangyuan0821 wants to merge 3 commits into
python:mainfrom
tangyuan0821:131178-pydoc
Open

gh-131178: Add CLI tests for pydoc module#151971
tangyuan0821 wants to merge 3 commits into
python:mainfrom
tangyuan0821:131178-pydoc

Conversation

tangyuan0821 commented Jun 23, 2026
edited
Loading

Copy link
Copy Markdown
Contributor
  • Add TestPydocCLI in Lib/test/test_pydoc/test_pydoc.py covering
    pydoc <name>, -k, -w, missing arguments, and invalid flags.
  • Fix Lib/pydoc.py to call sys.exit(1) on BadUsage/getopt.error.

Tests:

./python.exe -m test test_pydoc -v
# 127 tests OK

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL