

def assertProcessExited(self, proc):
    try:
        status = proc.status()
    except psutil.NoSuchProcess:
        status = 'exited'
    if (status not in ['exited', 'zombie']):
        self.fail(('Process with pid "%s" is still running' % proc.pid))

dataset/ETHPy150Open StackStorm/st2/st2tests/st2tests/base.py IntegrationTestCase.assertProcessExited/original