'called when self.runtest() raises an exception.'

def repr_failure(self, excinfo):

    if isinstance(excinfo.value, YamlException):
        return '\n'.join(['usecase    execution    failed', ('            spec    failed:    %r:    %r' % excinfo.value.args[1:3]), '            no    further    details    known    at    this    point.'])
