Skip to content

Commit 5820430

Browse files
committed
Mutate break to return to avoid timeouts
1 parent de5a22c commit 5820430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mutmut/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def keyword_mutation(value, context, **_):
165165
'not': '',
166166
'is': 'is not', # this will cause "is not not" sometimes, so there's a hack to fix that later
167167
'in': 'not in',
168-
'break': 'continue',
168+
'break': 'return',
169169
'continue': 'break',
170170
'True': 'False',
171171
'False': 'True',

0 commit comments

Comments
 (0)