Skip to content

Commit

Permalink
show exception traceback for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
15r10nk committed Oct 25, 2024
1 parent 75ff91f commit 218fc18
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mutmut/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ def orig_function_and_class_names_from_key(mutant_name):
class_name = r[r.index(CLASS_NAME_SEPARATOR) + 1: r.rindex(CLASS_NAME_SEPARATOR)]
r = r[r.rindex(CLASS_NAME_SEPARATOR) + 1:]
else:
assert r.startswith('x_')
assert r.startswith('x_'),r
r = r[2:]
return r, class_name

Expand Down Expand Up @@ -1544,7 +1544,9 @@ def load_thread():
if event.row_key.value == self.loading_id:
diff_view.text = d
except Exception as e:
diff_view.text = f'<{e}>'
import traceback

diff_view.text = traceback.format_exc()

t = Thread(target=load_thread)
t.start()
Expand Down

0 comments on commit 218fc18

Please sign in to comment.