diff --git a/stestr/output.py b/stestr/output.py index d980897..5ecd9c6 100644 --- a/stestr/output.py +++ b/stestr/output.py @@ -171,6 +171,9 @@ def __init__(self, process): self.source = self.proc.stdout self.lastoutput = bytes((b'\n')[0]) + def __del__(self): + self.proc.wait() + def _append_return_code_as_test(self): if self.done is True: return