@@ -143,18 +143,18 @@ def _init_pdb(cls, *args, **kwargs):
143
143
else :
144
144
tw .sep (">" , "PDB set_trace" )
145
145
146
- class _PdbWrapper (cls ._pdb_cls , object ):
146
+ class PytestPdbWrapper (cls ._pdb_cls , object ):
147
147
_pytest_capman = capman
148
148
_continued = False
149
149
150
150
def do_debug (self , arg ):
151
151
cls ._recursive_debug += 1
152
- ret = super (_PdbWrapper , self ).do_debug (arg )
152
+ ret = super (PytestPdbWrapper , self ).do_debug (arg )
153
153
cls ._recursive_debug -= 1
154
154
return ret
155
155
156
156
def do_continue (self , arg ):
157
- ret = super (_PdbWrapper , self ).do_continue (arg )
157
+ ret = super (PytestPdbWrapper , self ).do_continue (arg )
158
158
if cls ._recursive_debug == 0 :
159
159
tw = _pytest .config .create_terminal_writer (cls ._config )
160
160
tw .line ()
@@ -188,7 +188,7 @@ def set_quit(self):
188
188
could be handled, but this would require to wrap the
189
189
whole pytest run, and adjust the report etc.
190
190
"""
191
- super (_PdbWrapper , self ).set_quit ()
191
+ super (PytestPdbWrapper , self ).set_quit ()
192
192
if cls ._recursive_debug == 0 :
193
193
outcomes .exit ("Quitting debugger" )
194
194
@@ -198,15 +198,15 @@ def setup(self, f, tb):
198
198
Needed after do_continue resumed, and entering another
199
199
breakpoint again.
200
200
"""
201
- ret = super (_PdbWrapper , self ).setup (f , tb )
201
+ ret = super (PytestPdbWrapper , self ).setup (f , tb )
202
202
if not ret and self ._continued :
203
203
# pdb.setup() returns True if the command wants to exit
204
204
# from the interaction: do not suspend capturing then.
205
205
if self ._pytest_capman :
206
206
self ._pytest_capman .suspend_global_capture (in_ = True )
207
207
return ret
208
208
209
- _pdb = _PdbWrapper (** kwargs )
209
+ _pdb = PytestPdbWrapper (** kwargs )
210
210
cls ._pluginmanager .hook .pytest_enter_pdb (config = cls ._config , pdb = _pdb )
211
211
else :
212
212
_pdb = cls ._pdb_cls (** kwargs )
0 commit comments