Skip to content

Commit

Permalink
Crash with error message on invalid imports for src module
Browse files Browse the repository at this point in the history
  • Loading branch information
boxed committed Jan 14, 2025
1 parent c388a99 commit ec387be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mutmut/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def guess_paths_to_mutate():


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

0 comments on commit ec387be

Please sign in to comment.