Skip to content

Commit f72bc3e

Browse files
committed
goto cache removed
1 parent a882273 commit f72bc3e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

codeflash/discovery/discover_unit_tests.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,6 @@ def process_test_files(
491491

492492
function_to_test_map = defaultdict(set)
493493
jedi_project = jedi.Project(path=project_root_path)
494-
goto_cache = {}
495494
tests_cache = TestsCache()
496495

497496
with test_files_progress_bar(total=len(file_to_test_map), description="Processing test files") as (
@@ -605,13 +604,8 @@ def process_test_files(
605604
if scope not in test_functions_by_name:
606605
continue
607606

608-
cache_key = (name.full_name, name.module_name)
609607
try:
610-
if cache_key in goto_cache:
611-
definition = goto_cache[cache_key]
612-
else:
613-
definition = name.goto(follow_imports=True, follow_builtin_imports=False)
614-
goto_cache[cache_key] = definition
608+
definition = name.goto(follow_imports=True, follow_builtin_imports=False)
615609
except Exception as e:
616610
logger.debug(str(e))
617611
continue

0 commit comments

Comments
 (0)