Skip to content

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

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

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

Conversation

@tangyuan0821

@tangyuan0821 tangyuan0821 commented Jun 23, 2026 •

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

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 90 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant