Skip to content

gh-131178: Add tests for webbrowser command-line interface - #163070

Open
adharxhs wants to merge 2 commits into
python:mainfrom
adharxhs:test/webbrowser-cli
Open

adharxhs wants to merge 2 commits into
python:mainfrom
adharxhs:test/webbrowser-cli

Conversation

@adharxhs

@adharxhs adharxhs commented Dec 3, 2026 •

Copy link
Copy Markdown

Refs #131178.

Add subprocess tests for python -m webbrowser. The tests check that --help lists both window options and that combining -n with -t exits with status 2 and reports the argument conflict. Neither invocation launches a browser.

Tested on a Linux debug build with ./python -B -m test test_webbrowser test_argparse test_mimetypes (all three modules passed).

Codex assisted with drafting the tests and running the checks.

@python-cla-bot

python-cla-bot Bot commented Dec 3, 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 Dec 3, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Dec 3, 2026
7 of 9 tasks
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Dec 3, 2026
@bedevere-app

bedevere-app Bot commented Dec 3, 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.

@bedevere-app

bedevere-app Bot commented Dec 3, 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