File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,23 @@ def set_trace(cls):
5959 tw .line ()
6060 tw .sep (">" , "PDB set_trace (IO-capturing turned off)" )
6161 cls ._pluginmanager .hook .pytest_enter_pdb (config = cls ._config )
62- cls ._pdb_cls ().set_trace (frame )
62+
63+ class PytestPdb (cls ._pdb_cls ):
64+ def do_continue (self , arg ):
65+ ret = super (PytestPdb , self ).do_continue (arg )
66+ if self ._pytest_capman :
67+ tw = _pytest .config .create_terminal_writer (cls ._config )
68+ tw .line ()
69+ tw .sep (">" , "PDB continue (IO-capturing resumed)" )
70+ self ._pytest_capman .resumecapture ()
71+ return ret
72+ do_c = do_cont = do_continue
73+
74+ _pdb = PytestPdb ()
75+ _pdb ._pytest_capman = capman
76+ else :
77+ _pdb = cls ._pdb_cls ()
78+ _pdb .set_trace (frame )
6379
6480
6581class PdbInvoke :
You can’t perform that action at this time.
0 commit comments