Skip to content

Commit

Permalink
Merge pull request #322 from masayukig/fix-320
Browse files Browse the repository at this point in the history
Add destructor to wait for process termination
  • Loading branch information
mtreinish authored Apr 15, 2022
2 parents 3b5803c + da0a011 commit c086f2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stestr/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c086f2b

Please sign in to comment.