Skip to content

Commit

Permalink
Try clearing cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed May 17, 2024
1 parent 12f84cf commit 341ed71
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/lint/unittest_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,11 @@ def test_by_module_statement_value(initialized_linter: PyLinter) -> None:

def test_finds_pyi_file() -> None:
run = Run(
["--prefer-stubs=y", join(REGRTEST_DATA_DIR, "pyi")],
[
"--prefer-stubs=y",
"--clear-cache-post-run=y",
join(REGRTEST_DATA_DIR, "pyi"),
],
exit=False,
)
assert run.linter.current_file is not None
Expand All @@ -1059,10 +1063,9 @@ def test_finds_pyi_file() -> None:
def test_recursive_finds_pyi_file() -> None:
run = Run(
[
"--recursive",
"y",
"--prefer-stubs",
"y",
"--recursive=y",
"--prefer-stubs=y",
"--clear-cache-post-run=y",
join(REGRTEST_DATA_DIR, "pyi"),
],
exit=False,
Expand Down

0 comments on commit 341ed71

Please sign in to comment.