diff options
Diffstat (limited to 'service/test/functional/features')
-rw-r--r-- | service/test/functional/features/environment.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/service/test/functional/features/environment.py b/service/test/functional/features/environment.py index a30f3221..d49016b6 100644 --- a/service/test/functional/features/environment.py +++ b/service/test/functional/features/environment.py @@ -127,8 +127,12 @@ def after_step(context, step): def _debug_on_error(context, step): if step.status == 'failed' and context.config.userdata.getbool("debug"): - import pdb - pdb.post_mortem(step.exc_traceback) + try: + import ipdb + ipdb.post_mortem(step.exc_traceback) + except ImportError: + import pdb + pdb.post_mortem(step.exc_traceback) def _save_screenshot(context, step): |