From c53cd336f94a64f48a34388316c46e3458891e13 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 19 Dec 2024 15:59:03 -0800 Subject: [PATCH] style: Fix linting issues --- benchmark/benchmark.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmark/benchmark.py b/benchmark/benchmark.py index 86271189a..a0a471b4a 100755 --- a/benchmark/benchmark.py +++ b/benchmark/benchmark.py @@ -817,9 +817,9 @@ def run_test_real( try: errors = run_unit_tests(original_dname, testdir, history_fname, test_files) except subprocess.TimeoutExpired: - #try: + # try: # errors = run_unit_tests(original_dname, testdir, history_fname, test_files) - #except subprocess.TimeoutExpired: + # except subprocess.TimeoutExpired: errors = "Tests timed out!" timeouts += 1 @@ -882,11 +882,11 @@ def run_unit_tests(original_dname, testdir, history_fname, test_files): # Remove @Disabled annotations from Java test files for file_path in test_files: - if file_path.endswith('.java'): + if file_path.endswith(".java"): test_file = testdir / file_path if test_file.exists(): content = test_file.read_text() - content = re.sub(r'@Disabled\([^)]*\)\s*\n', '', content) + content = re.sub(r"@Disabled\([^)]*\)\s*\n", "", content) test_file.write_text(content) # Map of file extensions to test commands