mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
remove timing info, to avoid randomizing the response to GPT
This commit is contained in:
parent
9cfebc0b60
commit
10049d8695
1 changed files with 2 additions and 1 deletions
|
@ -394,7 +394,8 @@ def run_unit_tests(testdir, history_fname):
|
|||
all_tests_passed = False
|
||||
print(f"Test {test_file} failed")
|
||||
|
||||
res = result.stdout
|
||||
# remove timing info, to avoid randomizing the response to GPT
|
||||
res = re.sub(r" in \d+\.\d+s", " in 1.0s", result.stdout)
|
||||
|
||||
except subprocess.TimeoutExpired:
|
||||
all_tests_passed = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue