MCPcopy Create free account
hub / github.com/pytest-dev/pytest / _getreprcrash

Method _getreprcrash

src/_pytest/_code/code.py:602–606  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

600 return isinstance(self.value, exc)
601
602 def _getreprcrash(self) -> "ReprFileLocation":
603 exconly = self.exconly(tryshort=True)
604 entry = self.traceback.getcrashentry()
605 path, lineno = entry.frame.code.raw.co_filename, entry.lineno
606 return ReprFileLocation(path, lineno + 1, exconly)
607
608 def getrepr(
609 self,

Callers 4

getreprMethod · 0.95
from_item_and_callMethod · 0.80
assertrepr_compareFunction · 0.80
repr_excinfoMethod · 0.80

Calls 3

exconlyMethod · 0.95
ReprFileLocationClass · 0.85
getcrashentryMethod · 0.80

Tested by

no test coverage detected