Merge pull request #488 from isslower/codex/python-test-args

Fix Python test helpers to use function arguments
This commit is contained in:
Leon / 狮子的魂 2026-06-09 13:19:39 +08:00 committed by GitHub
commit e360f3d031
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@ def run_bench_test(db_path: str, src_path: str, cache_policy: str):
# create the searcher # create the searcher
searcher = None searcher = None
try: try:
searcher = create_searcher(args.db, args.cache_policy) searcher = create_searcher(db_path, cache_policy)
except Exception as e: except Exception as e:
print("failed to create searcher: {}".format(str(e))) print("failed to create searcher: {}".format(str(e)))
return return

View File

@ -49,7 +49,7 @@ def run_search_test(db_path: str, cache_policy: str):
# create the searcher # create the searcher
searcher = None searcher = None
try: try:
searcher = create_searcher(args.db, args.cache_policy) searcher = create_searcher(db_path, cache_policy)
except Exception as e: except Exception as e:
print("failed to create searcher: {}".format(str(e))) print("failed to create searcher: {}".format(str(e)))
return return