MCPcopy
hub / github.com/pytest-dev/pytest / setup

Method setup

src/_pytest/debugging.py:214–226  ·  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

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected