@@ -131,11 +131,11 @@ def codeflash_wrap(wrapped, test_module_name, test_class_name, test_name, functi
131131 """
132132 if sys .version_info < (3 , 12 ):
133133 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- print(f"!$######{{test_stdout_tag}}######$!") """
134+ """
135135 else :
136136 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- print(f'!$######{{test_stdout_tag}}######$!') """
138- expected += """
137+ """
138+ expected += """print(f'!$######{{test_stdout_tag}}######$!')
139139 exception = None
140140 gc.disable()
141141 try:
@@ -146,12 +146,7 @@ def codeflash_wrap(wrapped, test_module_name, test_class_name, test_name, functi
146146 codeflash_duration = time.perf_counter_ns() - counter
147147 exception = e
148148 gc.enable()
149- """
150- if sys .version_info < (3 , 12 ):
151- expected += """print(f"!######{{test_stdout_tag}}######!")"""
152- else :
153- expected += """print(f'!######{{test_stdout_tag}}######!')"""
154- expected += """
149+ print(f'!######{{test_stdout_tag}}######!')
155150 pickled_return_value = pickle.dumps(exception) if exception else pickle.dumps(return_value)
156151 codeflash_cur.execute('INSERT INTO test_results VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', (test_module_name, test_class_name, test_name, function_name, loop_index, invocation_id, codeflash_duration, pickled_return_value, 'function_call'))
157152 codeflash_con.commit()
@@ -240,11 +235,11 @@ def codeflash_wrap(wrapped, test_module_name, test_class_name, test_name, functi
240235 """
241236 if sys .version_info < (3 , 12 ):
242237 expected += """test_stdout_tag = f"{{test_module_name}}:{{(test_class_name + '.' if test_class_name else '')}}{{test_name}}:{{function_name}}:{{loop_index}}:{{invocation_id}}"
243- print(f"!$######{{test_stdout_tag}}######$!") """
238+ """
244239 else :
245240 expected += """test_stdout_tag = f'{{test_module_name}}:{{(test_class_name + '.' if test_class_name else '')}}{{test_name}}:{{function_name}}:{{loop_index}}:{{invocation_id}}'
246- print(f'!$######{{test_stdout_tag}}######$!') """
247- expected += """
241+ """
242+ expected += """print(f'!$######{{test_stdout_tag}}######$!')
248243 exception = None
249244 gc.disable()
250245 try:
@@ -255,12 +250,7 @@ def codeflash_wrap(wrapped, test_module_name, test_class_name, test_name, functi
255250 codeflash_duration = time.perf_counter_ns() - counter
256251 exception = e
257252 gc.enable()
258- """
259- if sys .version_info < (3 , 12 ):
260- expected += """print(f"!######{{test_stdout_tag}}######!")"""
261- else :
262- expected += """print(f'!######{{test_stdout_tag}}######!')"""
263- expected += """
253+ print(f'!######{{test_stdout_tag}}######!')
264254 pickled_return_value = pickle.dumps(exception) if exception else pickle.dumps(return_value)
265255 codeflash_cur.execute('INSERT INTO test_results VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', (test_module_name, test_class_name, test_name, function_name, loop_index, invocation_id, codeflash_duration, pickled_return_value, 'function_call'))
266256 codeflash_con.commit()
0 commit comments