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:
1463
1463
paths_to_cleanup .append (test_file .benchmarking_file_path )
1464
1464
1465
1465
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 12
12
from codeflash .api .aiservice import AiServiceClient , LocalAiServiceClient
13
13
from codeflash .cli_cmds .console import console , logger , progress_bar
14
14
from 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
16
16
from codeflash .code_utils .env_utils import get_pr_number
17
17
from codeflash .either import is_successful
18
18
from codeflash .models .models import ValidCode
@@ -356,6 +356,9 @@ def cleanup_temporary_paths(self) -> None:
356
356
if self .current_function_optimizer :
357
357
self .current_function_optimizer .cleanup_generated_files ()
358
358
359
+ if hasattr (get_run_tmp_file , "tmpdir" ):
360
+ get_run_tmp_file .tmpdir .cleanup ()
361
+ del get_run_tmp_file .tmpdir
359
362
cleanup_paths ([self .test_cfg .concolic_test_root_dir , self .replay_tests_dir ])
360
363
361
364
You can’t perform that action at this time.
0 commit comments