Skip to content

Commit 5577cd5

Browse files
committed
cleanup tests better
1 parent 9a41bdd commit 5577cd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_trace_benchmarks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,5 +150,5 @@ def test_code_to_optimize_bubble_sort_codeflash_trace_sorter():
150150
assert test_sort_path.read_text("utf-8").strip()==test_sort_code.strip()
151151
finally:
152152
# cleanup
153-
shutil.rmtree(tests_root)
154-
pass
153+
if tests_root.exists():
154+
shutil.rmtree(tests_root, ignore_errors=True)

0 commit comments

Comments
 (0)