Skip to content

Commit 9a49b0f

Browse files
committed
use a separate temp dir
1 parent 7c5f8ce commit 9a49b0f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

codeflash/discovery/discover_unit_tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import re
88
import sqlite3
99
import subprocess
10+
import tempfile
1011
import unittest
1112
from collections import defaultdict
1213
from pathlib import Path
@@ -287,6 +288,9 @@ def _process_single_test_file(
287288
test_file: Path, functions: list[TestsInFile], project_root_path: Path, test_framework: str
288289
) -> tuple[Path, set]:
289290
import jedi
291+
from jedi import settings
292+
293+
settings.cache_directory = tempfile.mkdtemp(prefix="jedi_cache_")
290294

291295
local_function_to_test_map = set()
292296

0 commit comments

Comments
 (0)