MCPcopy
hub / github.com/donnemartin/gitsome / repr_failure

Method repr_failure

xonsh/pytest_plugin.py:60–65  ·  view source on GitHub ↗

called when self.runtest() raises an exception.

(self, excinfo)

Source from the content-addressed store, hash-verified

58 self._test_func(*args, **kwargs)
59
60 def repr_failure(self, excinfo):
61 """ called when self.runtest() raises an exception. """
62 formatted_tb = _limited_traceback(excinfo)
63 formatted_tb.insert(0, "xonsh execution failed\n")
64 formatted_tb.append("{}: {}".format(excinfo.type.__name__, excinfo.value))
65 return "".join(formatted_tb)
66
67 def reportinfo(self):
68 return self.fspath, 0, "xonsh test: {}".format(self.name)

Callers

nothing calls this directly

Calls 4

_limited_tracebackFunction · 0.85
insertMethod · 0.80
formatMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected