Skip to content

Commit cbf4759

Browse files
committed
Fixed bug where mutmut would recollect all tests on every run
1 parent 5efc874 commit cbf4759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mutmut/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ def __init__(self, *, ids):
674674
def clear_out_obsolete_test_names(self):
675675
count_before = len(mutmut.tests_by_mangled_function_name)
676676
mutmut.tests_by_mangled_function_name = {
677-
k: {test_name for test_name in test_names if test_name not in self.ids}
677+
k: {test_name for test_name in test_names if test_name in self.ids}
678678
for k, test_names in mutmut.tests_by_mangled_function_name.items()
679679
}
680680
count_after = len(mutmut.tests_by_mangled_function_name)

0 commit comments

Comments
 (0)