class_docstr: A test result class that can express test results in a XML report.
  
  Used by XMLTestRunner.
docstr: Write some information about the FAIL or ERROR to the stream.
docstr_tok: ["Write","some","information","about","the","FAIL","or","ERROR","to","the","stream","."]
code: def printErrorList(self, flavour, errors):
      "Write some information about the FAIL or ERROR to the stream."
      for test_info in errors:
          if isinstance(test_info, tuple):
              test_info, exc_info = test_info
  
          try:
              t = test_info.get_elapsed_time()
          except AttributeError:
              t = 0
          try:
              descr = test_info.get_description()
          except AttributeError:
              try:
                  descr = test_info.getDescription()
              except AttributeError:
                  descr = str(test_info)
          try:
              err_info = test_info.get_error_info()
          except AttributeError:
              err_info = str(test_info)
  
          self.stream.writeln(self.separator1)
          self.stream.writeln("%s [%.3fs]: %s" % (flavour, t, descr))
          self.stream.writeln(self.separator2)
          self.stream.writeln("%s" % err_info)
  
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 10 for calling the _XMLTestResult obj's underlying member method code with example usage: obj.printErrorList(flavour, errors) without return types