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

Function close_a_pipe

tests/test_soft_stale.py:627–631  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

625 closed: list[int] = []
626
627 def close_a_pipe() -> None:
628 read_fd, write_fd = os.pipe()
629 os.close(read_fd)
630 os.close(write_fd)
631 closed.extend((read_fd, write_fd))
632
633 with _close_after_commit(mocker, lock) as (_close_error, attempts):
634 close_a_pipe()

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected