class_docstr: A test result class that can print formatted text results to a stream.
  
  Used by TextTestRunner.
class_docstr_tok: ["A","test","result","class","that","can","print","formatted","text","results","to","a","stream",".","Used","by","TextTestRunner","."]
code: def printErrors(self):
      if self.dots or self.showAll:
          self.stream.writeln()
          self.stream.flush()
      self.printErrorList("ERROR", self.errors)
      self.printErrorList("FAIL", self.failures)
      unexpectedSuccesses = getattr(self, "unexpectedSuccesses", ())
      if unexpectedSuccesses:
          self.stream.writeln(self.separator1)
          for test in unexpectedSuccesses:
              self.stream.writeln(
                  f"UNEXPECTED SUCCESS: {self.getDescription(test)}"
              )
          self.stream.flush()
  
imports: import sys
  import time
  import warnings
  from .None import result
  from .case import _SubTest
  from .signals import registerResult
label_desc: Use image node_id 12 for calling the TextTestResult obj's underlying member method code with example usage: obj.printErrors() without return types