diff options
-rw-r--r-- | tests/config/test_find_default_config_files.py | 5 |
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( |