Skip to content

gh-131178: Add tests for code command-line interface - #158588

Open
cprentice9 wants to merge 1 commit into
python:mainfrom
cprentice9:code-cli-tests
Open

cprentice9 wants to merge 1 commit into
python:mainfrom
cprentice9:code-cli-tests

Conversation

@cprentice9

@cprentice9 cprentice9 commented Oct 2, 2026 •

Copy link
Copy Markdown

python -m code had no tests. These run it in a subprocess and cover the banner and exit message, -q, the interpreter's -q flag (sys.flags.quiet), input read from stdin, -h, and an unknown option.

This PR is tests only, so it should need the "skip news" label.

Run `python -m code` in a subprocess and check the banner, the exit
message, `-q`, the interpreter's `-q` flag (sys.flags.quiet), input read
from stdin, `-h`, and an unknown option.
@python-cla-bot

python-cla-bot Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 2, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Oct 2, 2026
7 of 9 tasks
@bedevere-app bedevere-app Bot added awaiting review tests Tests in the Lib/test dir labels Oct 2, 2026
@bedevere-app

bedevere-app Bot commented Oct 2, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

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 type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant