File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1463,5 +1463,3 @@ def cleanup_generated_files(self) -> None:
14631463 paths_to_cleanup .append (test_file .benchmarking_file_path )
14641464
14651465 cleanup_paths (paths_to_cleanup )
1466- if hasattr (get_run_tmp_file , "tmpdir" ):
1467- get_run_tmp_file .tmpdir .cleanup ()
Original file line number Diff line number Diff line change 1212from codeflash .api .aiservice import AiServiceClient , LocalAiServiceClient
1313from codeflash .cli_cmds .console import console , logger , progress_bar
1414from codeflash .code_utils import env_utils
15- from codeflash .code_utils .code_utils import cleanup_paths
15+ from codeflash .code_utils .code_utils import cleanup_paths , get_run_tmp_file
1616from codeflash .code_utils .env_utils import get_pr_number
1717from codeflash .either import is_successful
1818from codeflash .models .models import ValidCode
@@ -356,6 +356,9 @@ def cleanup_temporary_paths(self) -> None:
356356 if self .current_function_optimizer :
357357 self .current_function_optimizer .cleanup_generated_files ()
358358
359+ if hasattr (get_run_tmp_file , "tmpdir" ):
360+ get_run_tmp_file .tmpdir .cleanup ()
361+ del get_run_tmp_file .tmpdir
359362 cleanup_paths ([self .test_cfg .concolic_test_root_dir , self .replay_tests_dir ])
360363
361364
You can’t perform that action at this time.
0 commit comments