Skip to content
Merged
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
3 changes: 2 additions & 1 deletion mutmut/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ def record_trampoline_hit(name):
f = inspect.currentframe()
c = mutmut.config.max_stack_depth
while c and f:
if 'pytest' in f.f_code.co_filename or 'hammett' in f.f_code.co_filename:
filename = f.f_code.co_filename
if 'pytest' in filename or 'hammett' in filename or 'unittest' in filename:
break
f = f.f_back
c -= 1
Expand Down