class_docstr: This class is used to keep useful information about the execution of a
  test method.
docstr: Create a new instance of _TestInfo.
docstr_tok: ["Create","a","new","instance","of","_TestInfo","."]
code: def __init__(
      self, test_result, test_method, outcome=SUCCESS, err=None
  ):
      "Create a new instance of _TestInfo."
      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 ""
      )
  
imports: from __future__ import absolute_import
  import os
  import sys
  import time
  from unittest import TestResult, TextTestResult, TextTestRunner
  import xml.dom.minidom
label_desc: Use image node_id 1 to create a new _TestInfo object from inherited base classes: object with example: obj = _TestInfo(test_result, test_method, outcome, err)