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

Function close

tests/core/test_context_errors.py:267–271  ·  view source on GitHub ↗
(target: int)

Source from the content-addressed store, hash-verified

265 attempts: list[int] = []
266
267 def close(target: int) -> None:
268 if target == fd:
269 attempts.append(target)
270 raise error
271 real_close(target) # pragma: no cover # only an unrelated __del__ close during the mock window reaches here
272
273 mocker.patch("os.close", side_effect=close, autospec=True)
274 return attempts

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected