Пример #1
0
  def addError(self, test, err):
    """ it reports an error, but does not fail a test
    @param test: an object of a calling test class
    @type test: TestCase
    @param err: a tuple of values as returned by sys.exc_info().
    """

    TextTestResult.addError(self, test, err)

    # pylint: disable=W0212
    key = "%s.%s" % (test.__class__.__name__, test._testMethodName)

    if (self._results is not None):
      # calculate a unique key
      key = self._calculate_unique_key(key)

      self._results.Error({key: self._exc_info_to_string(err, test)})
Пример #2
0
    def addError(self, test, err):
        """ it reports an error, but does not fail a test
    @param test: an object of a calling test class
    @type test: TestCase
    @param err: a tuple of values as returned by sys.exc_info().
    """

        TextTestResult.addError(self, test, err)

        # pylint: disable=W0212
        key = "%s.%s" % (test.__class__.__name__, test._testMethodName)

        if (self._results is not None):
            # calculate a unique key
            key = self._calculate_unique_key(key)

            self._results.Error({key: self._exc_info_to_string(err, test)})
Пример #3
0
 def addError(self, test, err):
     TextTestResult.addError(self, test, err)
     self.report.add_assertion(test, False)
Пример #4
0
 def addError(self, test, err):
     TextTestResult.addError(self, test, err)
     self.report.add_assertion(test, False)
Пример #5
0
 def addError(self, test, err):
     TextTestResult.addError(self, test, err)
     self.stream.log.write("ERROR\n")
     self.stream.log.flush()
Пример #6
0
 def addError(self, test, err):
     """Called when an error has occurred. 'err' is a tuple of values as returned by sys.exc_info()."""
     TextTestResult.addError(self, test, err)
     self._bmMessage({'Type': 'Error', 'Err': format_exception(*err)}, test)
 def addError(self, test, err):
     TextTestResult.addError(self, test, err)