File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -14131,6 +14131,13 @@ def __activate_behave_post_mortem_debug_mode(self):
14131
14131
pdb.post_mortem(sb_config.behave_step.exc_traceback)
14132
14132
# Post Mortem Debug Mode ("behave -D pdb")
14133
14133
14134
+ def __activate_sb_mgr_post_mortem_debug_mode(self):
14135
+ """Activate Post Mortem Debug Mode for failing tests that use SB Mgr"""
14136
+ import pdb
14137
+
14138
+ pdb.post_mortem()
14139
+ # Post Mortem Debug Mode ("python --pdb")
14140
+
14134
14141
def __activate_debug_mode_in_teardown(self):
14135
14142
"""Activate Debug Mode in tearDown() when using "--final-debug"."""
14136
14143
import pdb
@@ -14555,6 +14562,11 @@ def tearDown(self):
14555
14562
self.__activate_behave_post_mortem_debug_mode()
14556
14563
if self._final_debug:
14557
14564
self.__activate_debug_mode_in_teardown()
14565
+ elif (
14566
+ hasattr(sb_config, "_do_sb_post_mortem")
14567
+ and sb_config._do_sb_post_mortem
14568
+ ):
14569
+ self.__activate_sb_mgr_post_mortem_debug_mode()
14558
14570
# (Nosetests / Behave / Pure Python) Close all open browser windows
14559
14571
self.__quit_all_drivers()
14560
14572
# Resume tearDown() for all test runners, (Pytest / Nosetests / Behave)
You can’t perform that action at this time.
0 commit comments