Skip to content

Commit 3620dec

Browse files
committed
fix lint error
1 parent d8f8f58 commit 3620dec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/cli/test_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from contextlib import suppress
12
from pathlib import Path
23
from unittest.mock import patch
34

@@ -66,7 +67,5 @@ def test_import_tasks_non_py_list_pattern() -> None:
6667
mock.assert_called_with(modules)
6768
finally:
6869
for path in pathes:
69-
try:
70+
with suppress(FileNotFoundError):
7071
path.unlink()
71-
except FileNotFoundError:
72-
pass

0 commit comments

Comments
 (0)