Documentation
https://docs.python.org/3/library/pathlib.html#pathlib.Path.unlink states that a FileNotFoundError will be raised if the path does not exist.
On macos-14 a NotADirectoryError is raised if the directory does not exist.
See pypa/cibuildwheel#1850 for an example.
Linked PRs
Documentation
https://docs.python.org/3/library/pathlib.html#pathlib.Path.unlink states that a
FileNotFoundErrorwill be raised if the path does not exist.On macos-14 a
NotADirectoryErroris raised if the directory does not exist.See pypa/cibuildwheel#1850 for an example.
Linked PRs
NotADirectoryErrorinPath.unlink()ifmissing_okisTrue#120049