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 _write_status(self, test, status):
      is_subtest = isinstance(test, _SubTest)
      if is_subtest or self._newline:
          if not self._newline:
              self.stream.writeln()
          if is_subtest:
              self.stream.write("  ")
          self.stream.write(self.getDescription(test))
          self.stream.write(" ... ")
      self.stream.writeln(status)
      self.stream.flush()
      self._newline = True
  
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 4 for calling the TextTestResult obj's underlying member method code with example usage: obj._write_status(test, status) without return types