diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-04-16 21:20:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-16 21:20:47 +0200 |
commit | cb37ae4fc24a8756a5f965cdc6ab9c472f909ab0 (patch) | |
tree | 79b28ea81debf9127088c209e7c1f6a16632ac94 /tests/test_similar.py | |
parent | 86ed7fa47b501bfbab46a3fe84e02aea5a51376d (diff) | |
download | pylint-git-cb37ae4fc24a8756a5f965cdc6ab9c472f909ab0.tar.gz |
Fix regression with ``ignore-imports`` (#6358)
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Diffstat (limited to 'tests/test_similar.py')
-rw-r--r-- | tests/test_similar.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_similar.py b/tests/test_similar.py index 868284e5b..8a978d7d4 100644 --- a/tests/test_similar.py +++ b/tests/test_similar.py @@ -130,3 +130,11 @@ class TestSimilarCodeChecker: [path, "--disable=all", "--enable=duplicate-code"], expected_output=expected_output, ) + + def test_ignore_imports(self) -> None: + """Tests enabling ignore-imports works correctly.""" + path = join(DATA, "ignore_imports") + self._runtest( + [path, "-e=duplicate-code", "-d=unused-import", "--ignore-imports=y"], + code=0, + ) |