summaryrefslogtreecommitdiff
path: root/tests/lint
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2023-03-14 19:44:38 +0100
committerGitHub <noreply@github.com>2023-03-14 19:44:38 +0100
commit1eef2273aee4c5a2e287f7470d6da3a3ae7d0760 (patch)
treecb29286317426645a9e42eb04f66d4cdf31afeb3 /tests/lint
parent0d463f6e2127b81e2d13c482871f82b4c991f7bd (diff)
downloadpylint-git-1eef2273aee4c5a2e287f7470d6da3a3ae7d0760.tar.gz
[ruff] Add RUF specific rules and autofix (#8449)
Diffstat (limited to 'tests/lint')
-rw-r--r--tests/lint/unittest_lint.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lint/unittest_lint.py b/tests/lint/unittest_lint.py
index 4808151b8..57c9a83d0 100644
--- a/tests/lint/unittest_lint.py
+++ b/tests/lint/unittest_lint.py
@@ -127,7 +127,7 @@ def test_no_args(fake_path: list[str]) -> None:
def test_one_arg(fake_path: list[str], case: list[str]) -> None:
with tempdir() as chroot:
create_files(["a/b/__init__.py"])
- expected = [join(chroot, "a")] + fake_path
+ expected = [join(chroot, "a"), *fake_path]
extra_sys_paths = [
expand_modules.discover_package_path(arg, []) for arg in case
@@ -151,7 +151,7 @@ def test_one_arg(fake_path: list[str], case: list[str]) -> None:
def test_two_similar_args(fake_path: list[str], case: list[str]) -> None:
with tempdir() as chroot:
create_files(["a/b/__init__.py", "a/c/__init__.py"])
- expected = [join(chroot, "a")] + fake_path
+ expected = [join(chroot, "a"), *fake_path]
extra_sys_paths = [
expand_modules.discover_package_path(arg, []) for arg in case