Skip to content

Commit ec387be

Browse files
committed
Crash with error message on invalid imports for src module
1 parent c388a99 commit ec387be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mutmut/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ def guess_paths_to_mutate():
135135

136136

137137
def record_trampoline_hit(name):
138+
assert not name.startswith('src.'), f'Failed trampoline hit. Module name starts with `src.`, which is invalid'
138139
if mutmut.config.max_stack_depth != -1:
139140
f = inspect.currentframe()
140141
c = mutmut.config.max_stack_depth

0 commit comments

Comments
 (0)