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

Method setup

src/_pytest/debugging.py:212–224  ·  view source on GitHub ↗

Suspend on setup(). Needed after do_continue resumed, and entering another breakpoint again.

(self, f, tb)

Source from the content-addressed store, hash-verified

210 do_exit = do_quit
211
212 def setup(self, f, tb):
213 """Suspend on setup().
214
215 Needed after do_continue resumed, and entering another
216 breakpoint again.
217 """
218 ret = super().setup(f, tb)
219 if not ret and self._continued:
220 # pdb.setup() returns True if the command wants to exit
221 # from the interaction: do not suspend capturing then.
222 if self._pytest_capman:
223 self._pytest_capman.suspend_global_capture(in_=True)
224 return ret
225
226 def get_stack(self, f, t):
227 stack, i = super().get_stack(f, t)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected