Revert "Merge branch 'hoist-argv' into 'master'"

This reverts merge request !343
This commit is contained in:
Anthony Sottile 2019-08-28 23:16:20 +00:00
parent 6a70aaae7f
commit b41d983f04
3 changed files with 7 additions and 21 deletions

View file

@ -126,13 +126,3 @@ def test_bug_report_successful(capsys):
out, err = capsys.readouterr()
assert json.loads(out)
assert err == ''
def test_obtaining_args_from_sys_argv_when_not_explicity_provided(capsys):
"""Test that arguments are obtained from 'sys.argv'."""
with mock.patch('sys.argv', ['--help']):
_call_main(None)
out, err = capsys.readouterr()
assert out.startswith('usage: flake8 [options] file file ...\n')
assert err == ''