Skip to content

Commit 341ed71

Browse files
Try clearing cache
1 parent 12f84cf commit 341ed71

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tests/lint/unittest_lint.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,11 @@ def test_by_module_statement_value(initialized_linter: PyLinter) -> None:
10491049

10501050
def test_finds_pyi_file() -> None:
10511051
run = Run(
1052-
["--prefer-stubs=y", join(REGRTEST_DATA_DIR, "pyi")],
1052+
[
1053+
"--prefer-stubs=y",
1054+
"--clear-cache-post-run=y",
1055+
join(REGRTEST_DATA_DIR, "pyi"),
1056+
],
10531057
exit=False,
10541058
)
10551059
assert run.linter.current_file is not None
@@ -1059,10 +1063,9 @@ def test_finds_pyi_file() -> None:
10591063
def test_recursive_finds_pyi_file() -> None:
10601064
run = Run(
10611065
[
1062-
"--recursive",
1063-
"y",
1064-
"--prefer-stubs",
1065-
"y",
1066+
"--recursive=y",
1067+
"--prefer-stubs=y",
1068+
"--clear-cache-post-run=y",
10661069
join(REGRTEST_DATA_DIR, "pyi"),
10671070
],
10681071
exit=False,

0 commit comments

Comments
 (0)