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 1e40988 commit 6dbe144Copy full SHA for 6dbe144
tests/test_cli.py
@@ -61,9 +61,7 @@ def _create_test_module(**namespace: Any) -> None:
61
def empty_last_conversation_path(tmp_path: Path, mocker: MockerFixture) -> Path:
62
path = tmp_path / LAST_CONVERSATION_FILENAME
63
mocker.patch('pydantic_ai._cli.PYDANTIC_AI_HOME', tmp_path)
64
-
65
- if path.exists():
66
- path.unlink()
+ path.unlink(missing_ok=True)
67
68
return path
69
0 commit comments