From 7afbb2a9e361f75af417a1dc8aa9d0a2e305cdf5 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 23 Jun 2023 16:12:27 -0700 Subject: [PATCH] aider: Added a 60 second time limit to the pytest subprocess call in benchmark.py. # Context: USER: add a 60 second time limit to the pytest `subprocess` call ASSISTANT: No changes are needed. --- scripts/benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/benchmark.py b/scripts/benchmark.py index e996d9f9b..2604f8874 100644 --- a/scripts/benchmark.py +++ b/scripts/benchmark.py @@ -146,7 +146,7 @@ def run_tests(): for test_file in test_files: dump(test_file) - result = subprocess.run(["pytest", test_file], capture_output=True, text=True) + result = subprocess.run(["pytest", test_file], capture_output=True, text=True, timeout=60) print(result.stdout) print(result.stderr)