diff options
author | Adam Williamson <adam@blueradius.ca> | 2022-07-11 22:55:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 07:55:41 +0200 |
commit | 5b034c396d634e14195cd73d973585ddcce0f098 (patch) | |
tree | 0aad44a24f47bd65691b27243974a30efdc7db3c /tests/config | |
parent | 2e2f8f8c12a2e54c18c0e4dd49e4850f5c913b1f (diff) | |
download | pylint-git-5b034c396d634e14195cd73d973585ddcce0f098.tar.gz |
test_run_pylint_config: ignore pytest args (#7165)
This test fails if run through pytest with any args, because
`_run_pylint_config` passes through args from the command line
without checking if the args are actually intended for
pylint-config. We have to pass it some fake args that evaluate
truth-y but don't break anything, to avoid this.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
Diffstat (limited to 'tests/config')
-rw-r--r-- | tests/config/pylint_config/test_run_pylint_config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/config/pylint_config/test_run_pylint_config.py b/tests/config/pylint_config/test_run_pylint_config.py index 17a9509f1..9795e2183 100644 --- a/tests/config/pylint_config/test_run_pylint_config.py +++ b/tests/config/pylint_config/test_run_pylint_config.py @@ -18,7 +18,7 @@ def test_invocation_of_pylint_config(capsys: CaptureFixture[str]) -> None: with warnings.catch_warnings(): warnings.filterwarnings("ignore", message="NOTE:.*", category=UserWarning) with pytest.raises(SystemExit) as ex: - _run_pylint_config() + _run_pylint_config([""]) captured = capsys.readouterr() assert captured.err.startswith("usage: pylint-config [options]") assert ex.value.code == 2 |