Skip to content

Commit a813871

Browse files
committed
some fixes
1 parent 33a252d commit a813871

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

mutmut/__main__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -674,10 +674,12 @@ def old_tests():
674674
}
675675

676676
def clear_out_obsolete_test_names(self):
677-
mutmut.tests_by_mangled_function_name = {
677+
old_tests=dict(mutmut.tests_by_mangled_function_name)
678+
mutmut.tests_by_mangled_function_name.clear()
679+
mutmut.tests_by_mangled_function_name.update({
678680
k: {test_name for test_name in test_names if test_name not in self.ids}
679-
for k, test_names in mutmut.tests_by_mangled_function_name.items()
680-
}
681+
for k, test_names in old_tests.items()
682+
})
681683
save_stats()
682684

683685
def new_tests(self):
@@ -688,7 +690,7 @@ class PytestRunner(TestRunner):
688690
def execute_pytest(self, params, **kwargs):
689691
import pytest
690692
params+=["--rootdir=.","--inline-snapshot=disable"]
691-
print(">","pytest",*params,kwargs)
693+
#print(">","pytest",*params,kwargs)
692694
exit_code = int(pytest.main(params, **kwargs))
693695
if exit_code == 4:
694696
raise BadTestExecutionCommandsException(params)

0 commit comments

Comments
 (0)