[New-bugs-announce] [issue41253] unittest -h shows a flag -s but it doesn't work
Faris Chugthai
report at bugs.python.org
Thu Jul 9 00:37:30 EDT 2020
New submission from Faris Chugthai <farischugthai at gmail.com>:
I'm not 100% sure what's happening here but running:
`python -m unittest -h`
shows a flag `-s` as does
`python -m unittest discover -h`.
When run as:
`python -m unittest discover -s test`
the command runs correctly but when run as
`python -m unittest -s test`
the command fails.
```sh
$ python -m unittest -s test
usage: python -m unittest [-h] [-v] [-q] [--locals] [-f] [-c] [-b] [-k TESTNAMEPATTERNS] [tests [tests ...]
python -m unittest: error: unrecognized arguments: -s
```
Which I believe to be a bug as the help generated by the discover subcommand indicates that the flag -s should be recognized.
----------
components: Tests
messages: 373372
nosy: Faris Chugthai
priority: normal
severity: normal
status: open
title: unittest -h shows a flag -s but it doesn't work
type: behavior
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41253>
_______________________________________
More information about the New-bugs-announce
mailing list