Skip to content

Commit 218fc18

Browse files
committed
show exception traceback for debugging
1 parent 75ff91f commit 218fc18

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mutmut/__main__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ def orig_function_and_class_names_from_key(mutant_name):
797797
class_name = r[r.index(CLASS_NAME_SEPARATOR) + 1: r.rindex(CLASS_NAME_SEPARATOR)]
798798
r = r[r.rindex(CLASS_NAME_SEPARATOR) + 1:]
799799
else:
800-
assert r.startswith('x_')
800+
assert r.startswith('x_'),r
801801
r = r[2:]
802802
return r, class_name
803803

@@ -1544,7 +1544,9 @@ def load_thread():
15441544
if event.row_key.value == self.loading_id:
15451545
diff_view.text = d
15461546
except Exception as e:
1547-
diff_view.text = f'<{e}>'
1547+
import traceback
1548+
1549+
diff_view.text = traceback.format_exc()
15481550

15491551
t = Thread(target=load_thread)
15501552
t.start()

0 commit comments

Comments
 (0)