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

Function close_a_pipe

tests/test_async_filelock.py:808–812  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

806 closed: list[int] = []
807
808 def close_a_pipe() -> None:
809 read_fd, write_fd = os.pipe()
810 os.close(read_fd)
811 os.close(write_fd)
812 closed.extend((read_fd, write_fd))
813
814 with _close_after_commit(mocker, lock) as (_close_error, attempts):
815 close_a_pipe()

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected