mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
style: Fix linting issues
This commit is contained in:
parent
a8226989c8
commit
c53cd336f9
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue