class_docstr: Basic test report object (also used for setup and teardown calls if
  they fail).
class_docstr_tok: ["Basic","test","report","object","(","also","used","for","setup","and","teardown","calls","if","they","fail",")","."]
code: def __init__(
      self,
      nodeid,
      location,
      keywords,
      outcome,
      longrepr,
      when,
      sections=(),
      duration=0,
      user_properties=None,
      **extra,
  ):
      #: normalized collection node id
      self.nodeid = nodeid
  
      #: a (filesystempath, lineno, domaininfo) tuple indicating the
      #: actual location of a test item - it might be different from the
      #: collected one e.g. if a method is inherited from a different module.
      self.location = location
  
      #: a name -> value dictionary containing all keywords and
      #: markers associated with a test invocation.
      self.keywords = keywords
  
      #: test outcome, always one of "passed", "failed", "skipped".
      self.outcome = outcome
  
      #: None or a failure representation.
      self.longrepr = longrepr
  
      #: one of 'setup', 'call', 'teardown' to indicate runtest phase.
      self.when = when
  
      #: user properties is a list of tuples (name, value) that holds user
      #: defined properties of the test
      self.user_properties = list(user_properties or [])
  
      #: list of pairs ``(str, str)`` of extra information which needs to
      #: marshallable. Used by pytest to add captured text
      #: from ``stdout`` and ``stderr``, but may be used by other plugins
      #: to add arbitrary information to reports.
      self.sections = list(sections)
  
      #: time it took to run just the test
      self.duration = duration
  
      self.__dict__.update(extra)
  
imports: from pprint import pprint
  import py
  import six
  from _pytest._code.code import ExceptionInfo
  from _pytest._code.code import ReprEntry
  from _pytest._code.code import ReprEntryNative
  from _pytest._code.code import ReprExceptionInfo
  from _pytest._code.code import ReprFileLocation
  from _pytest._code.code import ReprFuncArgs
  from _pytest._code.code import ReprLocals
  from _pytest._code.code import ReprTraceback
  from _pytest._code.code import TerminalRepr
  from _pytest.outcomes import skip
  from _pytest.pathlib import Path
label_desc: Use image node_id 1 to create a new TestReport object from inherited base classes: BaseReport with example: obj = TestReport(nodeid, location, keywords, outcome, longrepr, when, sections, duration, user_properties)