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

Function close

tests/test_soft_stale.py:660–665  ·  view source on GitHub ↗
(fd: int)

Source from the content-addressed store, hash-verified

658 real_mark_released()
659
660 def close(fd: int) -> None:
661 real_close(fd)
662 if fd not in released:
663 return
664 attempts.append(fd)
665 raise close_error
666
667 mocker.patch.object(lock, "_mark_descriptor_released", side_effect=mark_released)
668 close_mock = mocker.patch("filelock._soft.os.close", side_effect=close)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected