diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-10-02 09:50:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-02 09:50:59 +0200 |
commit | 1a9626a8d0b6a54ac113ab9548177e40e215219f (patch) | |
tree | 92acb932ba94e9bc8fec968d8c16c052d3987988 /tests/config | |
parent | 629129557af46c31b9d9f0d9024ef60e25fadf6a (diff) | |
download | pylint-git-1a9626a8d0b6a54ac113ab9548177e40e215219f.tar.gz |
Fix handling of ``--`` as separator between positional args and flags (#7551)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'tests/config')
-rw-r--r-- | tests/config/test_config.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/config/test_config.py b/tests/config/test_config.py index 56a2c1823..12d7a6e60 100644 --- a/tests/config/test_config.py +++ b/tests/config/test_config.py @@ -148,11 +148,10 @@ def test_short_verbose(capsys: CaptureFixture) -> None: assert "Using config file" in output.err -def test_argument_separator(capsys: CaptureFixture) -> None: +def test_argument_separator() -> 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 + runner = Run(["--", str(EMPTY_MODULE)], exit=False) + assert not runner.linter.stats.by_msg |