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

gh-131178: Add tests for pyclbr command-line interface by WYSIATI · Pull Request #147995 · python/cpython · GitHub

/ cpython Public

gh-131178: Add tests for pyclbr command-line interface - #147995

Closed
WYSIATI wants to merge 1 commit into
python:mainfrom
WYSIATI:add-pyclbr-cli-tests
Closed

gh-131178: Add tests for pyclbr command-line interface#147995
WYSIATI wants to merge 1 commit into
python:mainfrom
WYSIATI:add-pyclbr-cli-tests

Conversation

WYSIATI commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add CommandLineTest class to Lib/test/test_pyclbr.py with tests for python -m pyclbr
  • Tests cover: file path argument, module name argument, no arguments (defaults to self-analysis), output line number format verification, and error handling for nonexistent modules
  • Follows the established pattern from other CLI test PRs in this issue (e.g., test_tokenize, test_pickle)

Add CLI test coverage for `python -m pyclbr`, testing:
- Running with a file path argument
- Running with a module name argument
- Running with no arguments (defaults to self-analysis)
- Output line number verification
- Error handling for nonexistent modules

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
bedevere-app Bot added awaiting review tests Tests in the Lib/test dir labels Apr 2, 2026

WYSIATI commented Apr 2, 2026

Copy link
Copy Markdown
Contributor Author

Closing this PR — pyclbr's CLI is an informal debug utility, not a documented command-line interface listed in the cmdline docs. It doesn't fit the scope of gh-131178.

WYSIATI closed this Apr 2, 2026
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

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL