diff options
author | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-06-30 14:09:42 +0200 |
---|---|---|
committer | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-06-30 14:24:50 +0200 |
commit | cbb6eed216586ff4da23703a150f18bac411e84e (patch) | |
tree | ccc413fef886164858c12a378b30670cabb2cf4c /tests/config | |
parent | e876f04e2caa36d030f4ad06b1f4bb00ed3f6995 (diff) | |
download | pylint-git-cbb6eed216586ff4da23703a150f18bac411e84e.tar.gz |
Fix handling of ``--`` as separator of positional arguments and flags
Diffstat (limited to 'tests/config')
-rw-r--r-- | tests/config/test_config.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/config/test_config.py b/tests/config/test_config.py index ed0b745ff..47891aee2 100644 --- a/tests/config/test_config.py +++ b/tests/config/test_config.py @@ -116,3 +116,13 @@ def test_short_verbose(capsys: CaptureFixture) -> None: Run([str(EMPTY_MODULE), "-v"], exit=False) output = capsys.readouterr() assert "Using config file" in output.err + + +def test_argument_separator(capsys: CaptureFixture) -> None: + """Check that we support using '--' to separate argument types. + + Reported in https://github.com/PyCQA/pylint/issues/7003. + """ + Run(["--", str(EMPTY_MODULE)], exit=False) + output = capsys.readouterr() + assert not output.err |