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

Method do_quit

src/_pytest/debugging.py:195–207  ·  view source on GitHub ↗

Raise Exit outcome when quit command is used in pdb. This is a bit of a hack - it would be better if BdbQuit could be handled, but this would require to wrap the whole pytest run, and adjust the report etc.

(self, arg)

Source from the content-addressed store, hash-verified

193 do_c = do_cont = do_continue
194
195 def do_quit(self, arg):
196 """Raise Exit outcome when quit command is used in pdb.
197
198 This is a bit of a hack - it would be better if BdbQuit
199 could be handled, but this would require to wrap the
200 whole pytest run, and adjust the report etc.
201 """
202 ret = super().do_quit(arg)
203
204 if cls._recursive_debug == 0:
205 outcomes.exit("Quitting debugger")
206
207 return ret
208
209 do_q = do_quit
210 do_exit = do_quit

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected