MCPcopy Create free account
hub / github.com/tox-dev/filelock / error

Function error

tests/core/test_errors.py:130–135  ·  view source on GitHub ↗
(request: pytest.FixtureRequest)

Source from the content-addressed store, hash-verified

128 ]
129)
130def error(request: pytest.FixtureRequest) -> Timeout | SoftFileLockProtocolError:
131 if request.param == "timeout":
132 return Timeout("/path/to/lock")
133 if request.param == "holder":
134 return Timeout("/path/to/lock", "pid 7 on build-host")
135 return SoftFileLockProtocolError("/path/to/lock", request.param, "invalid marker")
136
137
138def _pickle_round_trip(

Callers

nothing calls this directly

Calls 2

TimeoutClass · 0.90

Tested by

no test coverage detected