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

Method _getentrysource

src/_pytest/_code/code.py:717–721  ·  view source on GitHub ↗
(self, entry: TracebackEntry)

Source from the content-addressed store, hash-verified

715 return 4 + (len(s) - len(s.lstrip()))
716
717 def _getentrysource(self, entry: TracebackEntry) -> Optional["Source"]:
718 source = entry.getsource(self.astcache)
719 if source is not None:
720 source = source.deindent()
721 return source
722
723 def repr_args(self, entry: TracebackEntry) -> Optional["ReprFuncArgs"]:
724 if self.funcargs:

Callers 2

repr_traceback_entryMethod · 0.95

Calls 2

getsourceMethod · 0.80
deindentMethod · 0.80

Tested by 1