Skip to content

Commit

Permalink
reverted some src. fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
15r10nk committed Oct 25, 2024
1 parent bbb41c4 commit 1465724
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mutmut/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def create_mutants_for_file(filename, output_path):
source_file_mutation_data = SourceFileMutationData(path=filename)
module_name = str(filename)[:-len(filename.suffix)].replace(os.sep, '.')
source_file_mutation_data.exit_code_by_key = {
'.'.join([module_name, x]).replace('.__init__.', '.').replace("src.",""): None
'.'.join([module_name, x]).replace('.__init__.', '.'): None
for x in mutant_names
}
source_file_mutation_data.hash_by_function_name = hash_by_function_name
Expand Down Expand Up @@ -1067,7 +1067,7 @@ def collect_source_file_mutation_data(*, mutant_names):
source_file_mutation_data_by_path[str(path)] = m

mutants = [
(m, mutant_name.replace("src.",""), result)
(m, mutant_name, result)
for path, m in source_file_mutation_data_by_path.items()
for mutant_name, result in m.exit_code_by_key.items()
]
Expand Down Expand Up @@ -1214,7 +1214,6 @@ def read_one_child_exit_status():
print_stats(source_file_mutation_data_by_path)

mutant_name = mutant_name.replace('__init__.', '')
mutant_name = mutant_name.replace('src.', '')

# Rerun mutant if it's explicitly mentioned, but otherwise let the result stand
if not mutant_names and result is not None:
Expand Down

0 comments on commit 1465724

Please sign in to comment.