mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
style: Fix linting issues in benchmark.py
This commit is contained in:
parent
b23669400f
commit
cf5b38d4f5
1 changed files with 1 additions and 6 deletions
|
@ -787,7 +787,6 @@ def run_test_real(
|
||||||
|
|
||||||
|
|
||||||
def run_unit_tests(testdir, history_fname):
|
def run_unit_tests(testdir, history_fname):
|
||||||
|
|
||||||
timeout = 60
|
timeout = 60
|
||||||
|
|
||||||
command = ["pytest"]
|
command = ["pytest"]
|
||||||
|
@ -818,11 +817,7 @@ def run_unit_tests(testdir, history_fname):
|
||||||
|
|
||||||
def cleanup_test_output(output, testdir):
|
def cleanup_test_output(output, testdir):
|
||||||
# remove timing info, to avoid randomizing the response to GPT
|
# remove timing info, to avoid randomizing the response to GPT
|
||||||
res = re.sub(
|
res = re.sub(r"\bin \d+\.\d+s\b", "", output)
|
||||||
r"\bin \d+\.\d+s\b",
|
|
||||||
"",
|
|
||||||
output
|
|
||||||
)
|
|
||||||
res = res.replace(str(testdir), str(testdir.name))
|
res = res.replace(str(testdir), str(testdir.name))
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue