X Tutup
The Wayback Machine - https://web.archive.org/web/20250617080827/https://github.com/python/cpython/issues/117923
Skip to content

test_webbrowser prints unnecessary information #117923

Closed
@Eclips4

Description

@Eclips4

Bug report

Bug description:

./python.exe -m test -v test_webbrowser -m test_parse_args_error
== CPython 3.13.0a6+ (heads/main:2cc916e147, Apr 16 2024, 11:08:11) [Clang 15.0.0 (clang-1500.1.0.2.5)]
== macOS-14.2.1-arm64-arm-64bit-Mach-O little-endian
== Python build: debug
== cwd: /Users/admin/Projects/cpython/build/test_python_worker_26916æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources: all test resources are disabled, use -u option to unskip tests

Using random seed: 2903510780
0:00:00 load avg: 2.42 Run 1 test sequentially
0:00:00 load avg: 2.42 [1/1] test_webbrowser
test_parse_args_error (test.test_webbrowser.CliTest.test_parse_args_error) ... usage: __main__.py [-h] [-n | -t] url
__main__.py: error: argument -t/--new-tab: not allowed with argument -n/--new-window
usage: __main__.py [-h] [-n | -t] url
__main__.py: error: argument -t/--new-tab: not allowed with argument -n/--new-window
usage: __main__.py [-h] [-n | -t] url
__main__.py: error: argument -t/--new-tab: not allowed with argument -n/--new-window
usage: __main__.py [-h] [-n | -t] url
__main__.py: error: argument -t/--new-tab: not allowed with argument -n/--new-window
usage: __main__.py [-h] [-n | -t] url
__main__.py: error: ambiguous option: --new could match --new-window, --new-tab
ok

----------------------------------------------------------------------
Ran 1 test in 0.003s

OK

== Tests result: SUCCESS ==

1 test OK.

Total duration: 145 ms
Total tests: run=1 (filtered)
Total test files: run=1/1 (filtered)
Result: SUCCESS

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup