MCPcopy
hub / github.com/pytest-dev/pytest / _ignore_error

Function _ignore_error

src/_pytest/pathlib.py:61–65  ·  view source on GitHub ↗
(exception: Exception)

Source from the content-addressed store, hash-verified

59
60
61def _ignore_error(exception: Exception) -> bool:
62 return (
63 getattr(exception, "errno", None) in _IGNORED_ERRORS
64 or getattr(exception, "winerror", None) in _IGNORED_WINERRORS
65 )
66
67
68def get_lock_path(path: _AnyPurePath) -> _AnyPurePath:

Callers 1

scandirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected