

def tearDown(self):
    super(IntegrationTestCase, self).tearDown()
    for (pid, process) in self.processes.items():
        try:
            process.kill()
        except OSError:
            pass
        if self.print_stdout_stderr_on_teardown:
            try:
                stdout = process.stdout.read()
            except:
                stdout = None
            try:
                stderr = process.stderr.read()
            except:
                stderr = None
            print(('Process "%s"' % process.pid))
            print(('Stdout: %s' % stdout))
            print(('Stderr: %s' % stderr))

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