'Create a new instance of _TestInfo.'

def __init__(self, test_result, test_method, outcome=SUCCESS, err=None):

    self.test_result = test_result
    self.test_method = test_method
    self.outcome = outcome
    self.err = err
    self.stdout = ((test_result.stdout and test_result.stdout.getvalue().strip()) or '')
    self.stderr = ((test_result.stdout and test_result.stderr.getvalue().strip()) or '')
