Merge pull request #4968 from blueyed/pdb-do_debug-quit

pdb: do not raise outcomes.Exit with quit in debug
This commit is contained in:
Bruno Oliveira
2019-03-29 16:22:02 -03:00
committed by GitHub
3 changed files with 23 additions and 4 deletions

View File

@@ -176,8 +176,15 @@ class pytestPDB(object):
do_c = do_cont = do_continue
def set_quit(self):
"""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.
"""
super(_PdbWrapper, self).set_quit()
outcomes.exit("Quitting debugger")
if cls._recursive_debug == 0:
outcomes.exit("Quitting debugger")
def setup(self, f, tb):
"""Suspend on setup().