@@ -129,11 +129,7 @@ def codeflash_wrap(wrapped, test_module_name, test_class_name, test_name, functi
129
129
codeflash_test_index = codeflash_wrap.index[test_id]
130
130
invocation_id = f'{{line_id}}_{{codeflash_test_index}}'
131
131
"""
132
- if sys .version_info < (3 , 12 ):
133
- expected += """test_stdout_tag = f"{{test_module_name}}:{{(test_class_name + '.' if test_class_name else '')}}{{test_name}}:{{function_name}}:{{loop_index}}:{{invocation_id}}"
134
- """
135
- else :
136
- expected += """test_stdout_tag = f'{{test_module_name}}:{{(test_class_name + '.' if test_class_name else '')}}{{test_name}}:{{function_name}}:{{loop_index}}:{{invocation_id}}'
132
+ expected += """test_stdout_tag = f'{{test_module_name}}:{{(test_class_name + '.' if test_class_name else '')}}{{test_name}}:{{function_name}}:{{loop_index}}:{{invocation_id}}'
137
133
"""
138
134
expected += """print(f'!$######{{test_stdout_tag}}######$!')
139
135
exception = None
@@ -189,9 +185,9 @@ def test_sort(self):
189
185
)
190
186
os .chdir (original_cwd )
191
187
assert success
192
- assert new_test == expected .format (
188
+ assert new_test . replace ( '"' , "'" ) == expected .format (
193
189
module_path = Path (f .name ).name , tmp_dir_path = get_run_tmp_file (Path ("test_return_values" ))
194
- )
190
+ ). replace ( '"' , "'" )
195
191
196
192
197
193
def test_perfinjector_only_replay_test () -> None :
@@ -233,11 +229,7 @@ def codeflash_wrap(wrapped, test_module_name, test_class_name, test_name, functi
233
229
codeflash_test_index = codeflash_wrap.index[test_id]
234
230
invocation_id = f'{{line_id}}_{{codeflash_test_index}}'
235
231
"""
236
- if sys .version_info < (3 , 12 ):
237
- expected += """test_stdout_tag = f"{{test_module_name}}:{{(test_class_name + '.' if test_class_name else '')}}{{test_name}}:{{function_name}}:{{loop_index}}:{{invocation_id}}"
238
- """
239
- else :
240
- expected += """test_stdout_tag = f'{{test_module_name}}:{{(test_class_name + '.' if test_class_name else '')}}{{test_name}}:{{function_name}}:{{loop_index}}:{{invocation_id}}'
232
+ expected += """test_stdout_tag = f'{{test_module_name}}:{{(test_class_name + '.' if test_class_name else '')}}{{test_name}}:{{function_name}}:{{loop_index}}:{{invocation_id}}'
241
233
"""
242
234
expected += """print(f'!$######{{test_stdout_tag}}######$!')
243
235
exception = None
@@ -289,9 +281,9 @@ def test_prepare_image_for_yolo():
289
281
)
290
282
os .chdir (original_cwd )
291
283
assert success
292
- assert new_test == expected .format (
284
+ assert new_test . replace ( '"' , "'" ) == expected .format (
293
285
module_path = Path (f .name ).name , tmp_dir_path = get_run_tmp_file (Path ("test_return_values" ))
294
- )
286
+ ). replace ( '"' , "'" )
295
287
296
288
297
289
def test_perfinjector_bubble_sort_results () -> None :
0 commit comments