def MakeCustomTestResultClass(total_tests):

  class CustomTestResult(unittest.TextTestResult):
    """A subclass of unittest.TextTestResult that prints a progress report."""

    def startTest(self, test):
      super(CustomTestResult, self).startTest(test)
      if self.dots:
        test_id = '.'.join(test.id().split('.')[-2:])
        message = ('\r%d/%d finished - E[%d] F[%d] s[%d] - %s' % (
            self.testsRun, total_tests, len(self.errors),
            len(self.failures), len(self.skipped), test_id))
        message = message[:73]
        message = message.ljust(73)
        self.stream.write('%s - ' % message)

  return CustomTestResult
Add a sequence of data to the end of the dataset.
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/commands/test.py/MakeCustomTestResultClass--crossover with--dataset/ETHPy150Open PyTables/PyTables/tables/earray.py/EArray.append