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

Method get_stack

src/_pytest/debugging.py:226–233  ·  view source on GitHub ↗
(self, f, t)

Source from the content-addressed store, hash-verified

224 return ret
225
226 def get_stack(self, f, t):
227 stack, i = super().get_stack(f, t)
228 if f is None:
229 # Find last non-hidden frame.
230 i = max(0, len(stack) - 1)
231 while i and stack[i][0].f_locals.get("__tracebackhide__", False):
232 i -= 1
233 return stack, i
234
235 return PytestPdbWrapper
236

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected