Skip to content

Commit 7a8fe98

Browse files
Update tests/test_pylint_runners.py
1 parent 82948a0 commit 7a8fe98

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tests/test_pylint_runners.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,14 @@ def test_runner_with_arguments(runner: _RunCallable, tmpdir: LocalPath) -> None:
5959
assert err.value.code == 0
6060

6161

62-
def test_pylint_argument_deduplication(tmpdir: LocalPath) -> None:
62+
def test_pylint_argument_deduplication(tmpdir: LocalPath, tests_directory: Path) -> None:
6363
"""Check that the Pylint runner does not over-report on duplicate
6464
arguments.
6565
66-
(GitHub #6242, #4053).
66+
See https://github.com/PyCQA/pylint/issues/6242 and
67+
https://github.com/PyCQA/pylint/issues/4053
6768
"""
68-
filepath = str(
69-
pathlib.Path(__file__)
70-
.resolve()
71-
.parent.joinpath("functional", "t", "too", "too_many_branches.py")
72-
)
69+
filepath = str(tests_directory / "functional/t/too/too_many_branches.py")
7370
testargs = shlex.split("--report n --score n --max-branches 13")
7471
testargs.extend([filepath] * 4)
7572
exit_stack = contextlib.ExitStack()

0 commit comments

Comments
 (0)