@@ -31,7 +31,6 @@ def mutate_and_print(
3131 path_to_input_file : str ,
3232 path_to_root : str ,
3333 path_to_failed_mutants_dir : str ,
34- strict_mode : bool = False ,
3534 strict_mode_2 : bool = False ,
3635) -> bool :
3736 assert os .path .isfile (path_to_input_file ), path_to_input_file
@@ -79,9 +78,8 @@ def mutate_and_print(
7978 "-m" ,
8079 "html2pdf4doc.main" ,
8180 "print" ,
81+ "--strict" ,
8282 ]
83- if strict_mode :
84- cmd .append ("--strict" )
8583 if strict_mode_2 :
8684 cmd .append ("--strict2" )
8785
@@ -167,7 +165,6 @@ def fuzz_test(
167165 path_to_root : str ,
168166 path_to_failed_mutants_dir : str ,
169167 total_mutations : int = 20 ,
170- strict_mode : bool = False ,
171168 strict_mode_2 : bool = False ,
172169) -> None :
173170 success_count , failure_count = 0 , 0
@@ -181,7 +178,6 @@ def fuzz_test(
181178 path_to_input_file = path_to_input_file ,
182179 path_to_root = path_to_root ,
183180 path_to_failed_mutants_dir = path_to_failed_mutants_dir ,
184- strict_mode = strict_mode ,
185181 strict_mode_2 = strict_mode_2 ,
186182 )
187183 if success :
@@ -235,15 +231,13 @@ def main() -> None:
235231 total_mutations = args .total_mutations
236232 assert 1 <= total_mutations <= 1000 , total_mutations
237233
238- strict_mode = args .strict
239234 strict_mode_2 = args .strict2
240235
241236 fuzz_test (
242237 path_to_input_file = path_to_input_file ,
243238 path_to_root = path_to_root ,
244239 path_to_failed_mutants_dir = path_to_failed_mutants_dir ,
245240 total_mutations = total_mutations ,
246- strict_mode = strict_mode ,
247241 strict_mode_2 = strict_mode_2 ,
248242 )
249243
0 commit comments