mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-08 05:54:17 +00:00
application: Ensure --version is unknown during preliminary parsing
Now that the preliminary parser is being used, we can remove needing to prune out `--version` and copying the original `argv` list.
This commit is contained in:
parent
b9c8c3e118
commit
4151ae0e53
2 changed files with 3 additions and 17 deletions
|
|
@ -93,10 +93,10 @@ def test_returns_specified_plugin(application):
|
|||
def test_prelim_opts_args(application):
|
||||
"""Verify we get sensible prelim opts and args."""
|
||||
opts, args = application.parse_preliminary_options_and_args(
|
||||
['--foo', '--verbose', 'src', 'setup.py', '--statistics'])
|
||||
['--foo', '--verbose', 'src', 'setup.py', '--statistics', '--version'])
|
||||
|
||||
assert opts.verbose
|
||||
assert args == ['--foo', 'src', 'setup.py', '--statistics']
|
||||
assert args == ['--foo', 'src', 'setup.py', '--statistics', '--version']
|
||||
|
||||
|
||||
def test_prelim_opts_ignore_help(application):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue