summaryrefslogtreecommitdiff
path: root/tests/config
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2022-05-05 19:08:42 +0200
committerDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-05-05 19:57:49 +0200
commit1be6cf9cc26a37d9de11578146442759b49b5bf7 (patch)
tree0a4bce9da4c9f6f4902f1807eaf04d218a0782bb /tests/config
parent66fcbeb9fc088f4c88a007cb87e590b6765b2391 (diff)
downloadpylint-git-1be6cf9cc26a37d9de11578146442759b49b5bf7.tar.gz
Disable duplicate-code warnings
Diffstat (limited to 'tests/config')
-rw-r--r--tests/config/test_find_default_config_files.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/config/test_find_default_config_files.py b/tests/config/test_find_default_config_files.py
index 373099f08..0872c3d88 100644
--- a/tests/config/test_find_default_config_files.py
+++ b/tests/config/test_find_default_config_files.py
@@ -27,6 +27,7 @@ def pop_pylintrc() -> None:
os.environ.pop("PYLINTRC", None)
+# pylint: disable=duplicate-code
if os.name == "java":
if os.name == "nt":
HOME = "USERPROFILE"
@@ -55,6 +56,9 @@ def fake_home() -> Iterator[None]:
shutil.rmtree(folder, ignore_errors=True)
+# pylint: enable=duplicate-code
+
+
@contextlib.contextmanager
def tempdir() -> Iterator[str]:
"""Create a temp directory and change the current location to it.
@@ -95,6 +99,7 @@ def test_pylintrc() -> None:
@pytest.mark.usefixtures("pop_pylintrc")
def test_pylintrc_parentdir() -> None:
"""Test that the first pylintrc we find is the first parent directory."""
+ # pylint: disable=duplicate-code
with tempdir() as chroot:
chroot_path = Path(chroot)
testutils.create_files(