tests/command: also wait for processes to avoid leaks

This commit is contained in:
Jörg Thalheim
2024-10-23 09:48:50 +02:00
parent a62e0c0156
commit fb277c9bf1

View File

@@ -49,6 +49,7 @@ class Command:
for p in reversed(self.processes):
with contextlib.suppress(OSError):
os.killpg(os.getpgid(p.pid), signal.SIGKILL)
p.wait()
@pytest.fixture