File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ def do_continue(self, arg):
8484 tw .line ()
8585 tw .sep (">" , "PDB continue (IO-capturing resumed)" )
8686 self ._pytest_capman .resume_global_capture ()
87+ cls ._pluginmanager .hook .pytest_leave_pdb (config = cls ._config )
8788 return ret
8889 do_c = do_cont = do_continue
8990
Original file line number Diff line number Diff line change @@ -550,3 +550,13 @@ def pytest_enter_pdb(config):
550550
551551 :param _pytest.config.Config config: pytest config object
552552 """
553+
554+
555+ def pytest_leave_pdb (config ):
556+ """ called when leaving pdb (e.g. with continue after pdb.set_trace()).
557+
558+ Can be used by plugins to take special action just after the python
559+ debugger leaves interactive mode.
560+
561+ :param _pytest.config.Config config: pytest config object
562+ """
You can’t perform that action at this time.
0 commit comments