Skip to content

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

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

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

Conversation

@WYSIATI
Copy link
Copy Markdown

@WYSIATI WYSIATI commented Apr 2, 2026

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 bedevere-app bot added awaiting review tests Tests in the Lib/test dir labels Apr 2, 2026
@WYSIATI
Copy link
Copy Markdown
Author

WYSIATI commented Apr 2, 2026

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