Skip to content

Commit

Permalink
Fixed bug where mutmut would recollect all tests on every run
Browse files Browse the repository at this point in the history
  • Loading branch information
boxed committed Oct 26, 2024
1 parent 5efc874 commit cbf4759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mutmut/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ def __init__(self, *, ids):
def clear_out_obsolete_test_names(self):
count_before = len(mutmut.tests_by_mangled_function_name)
mutmut.tests_by_mangled_function_name = {
k: {test_name for test_name in test_names if test_name not in self.ids}
k: {test_name for test_name in test_names if test_name in self.ids}
for k, test_names in mutmut.tests_by_mangled_function_name.items()
}
count_after = len(mutmut.tests_by_mangled_function_name)
Expand Down

0 comments on commit cbf4759

Please sign in to comment.