Esempio n. 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)})
Esempio n. 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)})
Esempio n. 3
0
 def addError(self, test, err):
     TextTestResult.addError(self, test, err)
     self.report.add_assertion(test, False)
Esempio n. 4
0
 def addError(self, test, err):
     TextTestResult.addError(self, test, err)
     self.report.add_assertion(test, False)
Esempio n. 5
0
 def addError(self, test, err):
     TextTestResult.addError(self, test, err)
     self.stream.log.write("ERROR\n")
     self.stream.log.flush()
Esempio n. 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)