We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7764312 commit a36ed25Copy full SHA for a36ed25
src/_pytest/debugging.py
@@ -128,8 +128,15 @@ def do_continue(self, arg):
128
do_c = do_cont = do_continue
129
130
def set_quit(self):
131
+ """Raise Exit outcome when quit command is used in pdb.
132
+
133
+ This is a bit of a hack - it would be better if BdbQuit
134
+ could be handled, but this would require to wrap the
135
+ whole pytest run, and adjust the report etc.
136
+ """
137
super(_PdbWrapper, self).set_quit()
- outcomes.exit("Quitting debugger")
138
+ if cls._recursive_debug == 0:
139
+ outcomes.exit("Quitting debugger")
140
141
def setup(self, f, tb):
142
"""Suspend on setup().
0 commit comments