Skip to content

Commit 996e5d9

Browse files
checking safer tear down
1 parent 68aadc0 commit 996e5d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/services/test_graph_rag.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def clean_test_graph_cache():
2121
shutil.rmtree(TEST_GRAPH_DIR)
2222
os.makedirs(TEST_GRAPH_DIR)
2323
yield
24-
shutil.rmtree(TEST_GRAPH_DIR)
24+
if os.path.exists(TEST_GRAPH_DIR):
25+
shutil.rmtree(TEST_GRAPH_DIR)
2526

2627

2728
def test_init_with_dict_schema():

0 commit comments

Comments
 (0)