@@ -37,7 +37,7 @@ def test_add_decorator_imports_helper_in_class():
3737 line_profiler_output_file = add_decorator_imports (
3838 func_optimizer .function_to_optimize , code_context )
3939 expected_code_main = f"""from line_profiler import profile as codeflash_line_profile
40- codeflash_line_profile.enable(output_prefix='{ line_profiler_output_file } ')
40+ codeflash_line_profile.enable(output_prefix='{ line_profiler_output_file . as_posix () } ')
4141
4242from code_to_optimize.bubble_sort_in_class import BubbleSortClass
4343
@@ -106,7 +106,7 @@ def test_add_decorator_imports_helper_in_nested_class():
106106 line_profiler_output_file = add_decorator_imports (
107107 func_optimizer .function_to_optimize , code_context )
108108 expected_code_main = f"""from line_profiler import profile as codeflash_line_profile
109- codeflash_line_profile.enable(output_prefix='{ line_profiler_output_file } ')
109+ codeflash_line_profile.enable(output_prefix='{ line_profiler_output_file . as_posix () } ')
110110
111111from code_to_optimize.bubble_sort_in_nested_class import WrapperClass
112112
@@ -151,7 +151,7 @@ def test_add_decorator_imports_nodeps():
151151 line_profiler_output_file = add_decorator_imports (
152152 func_optimizer .function_to_optimize , code_context )
153153 expected_code_main = f"""from line_profiler import profile as codeflash_line_profile
154- codeflash_line_profile.enable(output_prefix='{ line_profiler_output_file } ')
154+ codeflash_line_profile.enable(output_prefix='{ line_profiler_output_file . as_posix () } ')
155155
156156
157157@codeflash_line_profile
@@ -200,7 +200,7 @@ def test_add_decorator_imports_helper_outside():
200200 line_profiler_output_file = add_decorator_imports (
201201 func_optimizer .function_to_optimize , code_context )
202202 expected_code_main = f"""from line_profiler import profile as codeflash_line_profile
203- codeflash_line_profile.enable(output_prefix='{ line_profiler_output_file } ')
203+ codeflash_line_profile.enable(output_prefix='{ line_profiler_output_file . as_posix () } ')
204204
205205from code_to_optimize.bubble_sort_dep1_helper import dep1_comparer
206206from code_to_optimize.bubble_sort_dep2_swap import dep2_swap
@@ -275,7 +275,7 @@ def __init__(self, arr):
275275 line_profiler_output_file = add_decorator_imports (
276276 func_optimizer .function_to_optimize , code_context )
277277 expected_code_main = f"""from line_profiler import profile as codeflash_line_profile
278- codeflash_line_profile.enable(output_prefix='{ line_profiler_output_file } ')
278+ codeflash_line_profile.enable(output_prefix='{ line_profiler_output_file . as_posix () } ')
279279
280280
281281@codeflash_line_profile
0 commit comments