Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

line 389 change: count_relevant_tb method mismatch #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion pyunitreport/HtmlTestResult.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,15 @@ def _exc_info_to_string(self, err, test):

if exctype is test.failureException:
# Skip assert*() traceback levels
length = self._count_relevant_tb_levels(tb)
#----------------- NEW CHANGED -------------------#

try:
length = self._count_relevant_tb_levels(tb) # inconsistent instance. should override the given method

except Exception as E:
length = self._is_relevant_tb_level(tb)
# --------------------- 0 -----------------------#

msgLines = traceback.format_exception(exctype, value, tb, length)
else:
msgLines = traceback.format_exception(exctype, value, tb)
Expand Down