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

Function close_a_pipe

tests/async_lock/test_close_errors.py:160–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158 closed: list[int] = []
159
160 def close_a_pipe() -> None:
161 read_fd, write_fd = os.pipe()
162 os.close(read_fd)
163 os.close(write_fd)
164 closed.extend((read_fd, write_fd))
165
166 with _close_after_commit(mocker, lock) as (_close_error, attempts):
167 close_a_pipe()

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected