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

Function cleanup_processes

tests/test_read_write.py:45–51  ·  view source on GitHub ↗
(processes: list[Process])

Source from the content-addressed store, hash-verified

43
44@contextmanager
45def cleanup_processes(processes: list[Process]) -> Generator[None]:
46 try:
47 yield
48 finally:
49 for proc in processes:
50 proc.terminate()
51 proc.join(timeout=1)
52
53
54@pytest.fixture

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…