environment/lib/python2.7/site-packages/nose/plugins/xunit.py
def addFailure(self, test, err, capt=None, tb_info=None):
        """Add failure output to Xunit report.
        """
        taken = self._timeTaken()
        tb = ''.join(traceback.format_exception(*err))
        self.stats['failures'] += 1
        id = test.id()
        self.errorlist.append(
            '<testcase classname=%(cls)s name=%(name)s time="%(taken).3f">'
            '<failure type=%(errtype)s message=%(message)s><![CDATA[%(tb)s]]>'
            '</failure></testcase>' %
            {'cls': self._quoteattr(id_split(id)[0]),
             'name': self._quoteattr(id_split(id)[-1]),
             'taken': taken,
             'errtype': self._quoteattr(nice_classname(err[0])),
             'message': self._quoteattr(exc_message(err)),
             'tb': escape_cdata(tb),
             })
def addFailure(self, test, err, capt=None, tb_info=None):
        taken = self._timeTaken()
        tb = ''.join(traceback.format_exception(*err))
        self.stats['failures'] += 1
        id = test.id()
        self.errorlist.append(
            '<testcase classname=%(cls)s name=%(name)s time="%(taken).3f">'
            '<failure type=%(errtype)s message=%(message)s><![CDATA[%(tb)s]]>'
            '</failure></testcase>' %
            {'cls': self._quoteattr(id_split(id)[0]),
             'name': self._quoteattr(id_split(id)[-1]),
             'taken': taken,
             'errtype': self._quoteattr(nice_classname(err[0])),
             'message': self._quoteattr(exc_message(err)),
             'tb': escape_cdata(tb),
             })
def addFailure ( self , test , err , capt = None , tb_info = None ) : taken = self . _timeTaken ( ) tb = '' . join ( traceback . format_exception ( * err ) ) self . stats [ 'failures' ] += 1 id = test . id ( ) self . errorlist . append ( '<testcase classname=%(cls)s name=%(name)s time="%(taken).3f">' '<failure type=%(errtype)s message=%(message)s><![CDATA[%(tb)s]]>' '</failure></testcase>' % { 'cls' : self . _quoteattr ( id_split ( id ) [ 0 ] ) , 'name' : self . _quoteattr ( id_split ( id ) [ - 1 ] ) , 'taken' : taken , 'errtype' : self . _quoteattr ( nice_classname ( err [ 0 ] ) ) , 'message' : self . _quoteattr ( exc_message ( err ) ) , 'tb' : escape_cdata ( tb ) , } )
Add failure output to Xunit report.
Add failure output to Xunit report .