Skip to content

Commit

Permalink
Omit traceback logging for test skip exceptions (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
cramertj committed Jan 4, 2023
1 parent 8254871 commit 7892f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobly/base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ def exec_one_test(self, test_name, test_method, record=None):
_, _, traceback = sys.exc_info()
raise signals.TestError(e.details, e.extras).with_traceback(traceback)
test_method()
except (signals.TestPass, signals.TestAbortSignal):
except (signals.TestPass, signals.TestAbortSignal, signals.TestSkip):
raise
except Exception:
logging.exception('Exception occurred in %s.',
Expand Down

0 comments on commit 7892f34

Please sign in to comment.