We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8f8f58 commit 3620decCopy full SHA for 3620dec
tests/cli/test_utils.py
@@ -1,3 +1,4 @@
1
+from contextlib import suppress
2
from pathlib import Path
3
from unittest.mock import patch
4
@@ -66,7 +67,5 @@ def test_import_tasks_non_py_list_pattern() -> None:
66
67
mock.assert_called_with(modules)
68
finally:
69
for path in pathes:
- try:
70
+ with suppress(FileNotFoundError):
71
path.unlink()
- except FileNotFoundError:
72
- pass
0 commit comments