Skip to content

test_help_arg: remove assert on 'optional arguments'#752

Merged
sigmavirus24 merged 1 commit into
PyCQA:masterfrom
mikelolasagasti:3.10-test_help_arg
Nov 13, 2021
Merged

test_help_arg: remove assert on 'optional arguments'#752
sigmavirus24 merged 1 commit into
PyCQA:masterfrom
mikelolasagasti:3.10-test_help_arg

Conversation

@mikelolasagasti
Copy link
Copy Markdown
Contributor

$ python --version
Python 3.9.2

usage: bandit [-h] [-r] [-a {file,vuln}] [-n CONTEXT_LINES] [-c CONFIG_FILE] [-p PROFILE] [-t TESTS] [-s SKIPS] [-l] [-i] [-f {csv,custom,html,json,screen,txt,xml,yaml}] [--msg-template MSG_TEMPLATE] [-o [OUTPUT_FILE]] [-v] [-d] [-q]
              [--ignore-nosec] [-x EXCLUDED_PATHS] [-b BASELINE] [--ini INI_PATH] [--exit-zero] [--version]
              [targets ...]

Bandit - a Python source code security analyzer

positional arguments:
  targets               source file(s) or directory(s) to be tested

optional arguments:
  -h, --help            show this help message and exit
  -r, --recursive       find and process files in subdirectories
(...)

$ python --version
Python 3.10.0

usage: bandit [-h] [-r] [-a {file,vuln}] [-n CONTEXT_LINES] [-c CONFIG_FILE] [-p PROFILE] [-t TESTS] [-s SKIPS] [-l | --severity-level {all,low,medium,high}] [-i | --confidence-level {all,low,medium,high}]
              [-f {csv,custom,html,json,screen,txt,xml,yaml}] [--msg-template MSG_TEMPLATE] [-o [OUTPUT_FILE]] [-v] [-d] [-q] [--ignore-nosec] [-x EXCLUDED_PATHS] [-b BASELINE] [--ini INI_PATH] [--exit-zero] [--version]
              [targets ...]

Bandit - a Python source code security analyzer

positional arguments:
  targets               source file(s) or directory(s) to be tested

options:
  -h, --help            show this help message and exit
  -r, --recursive       find and process files in subdirectories
(...)

In python-3.10 this renders as 'options:', rather than 'optinal
arguments:', breaking the test.
@mikelolasagasti mikelolasagasti changed the title In python-3.10 this renders as 'options:', breaking test test_help_arg: remove assert on 'optional arguments' Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants