Use _pytest.pathlib.safe_exists in get_dirs_from_args

Related to #11394
This commit is contained in:
Bruno Oliveira
2023-09-07 13:15:11 -03:00
parent 884b911a9c
commit 63b0c6f75f
4 changed files with 10 additions and 22 deletions

View File

@@ -688,7 +688,6 @@ def test_safe_exists(tmp_path: Path) -> None:
Path,
"exists",
autospec=True,
side_effect=OSError(errno.EIO, "another kind of error"),
side_effect=ValueError("name too long"),
):
with pytest.raises(OSError):
_ = safe_exists(p)
assert safe_exists(p) is False