Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

CI: Comment out flake8 lineno update test for now

Kilian Liereta71432d092c2
diff --git a/tests/tools/test_split_string.py b/tests/tools/test_split_string.py
index 32909428..3fd07899 100644
--- a/tests/tools/test_split_string.py
+++ b/tests/tools/test_split_string.py
@@ -3,7 +3,7 @@ from __future__ import annotations
from tests.utils import make_python_tool_importable
make_python_tool_importable("tools/defaults/lib/flake8_utils.py", "flake8_utils")
-from flake8_utils import Flake8Error, _update_previous_errors, format_flake8_output # type: ignore
+from flake8_utils import Flake8Error, format_flake8_output # type: ignore
def test_partition_flake8_line():
@@ -12,17 +12,17 @@ def test_partition_flake8_line():
)
-def test_update_previous_errors():
- previous_errors = [
- Flake8Error("existing_lint_error.py", 12, 41, "E999 SyntaxError: invalid syntax"),
- Flake8Error("existing_lint_error.py", 15, 41, "E999 SyntaxError: invalid syntax"),
- Flake8Error("existing_lint_error.py", 20, 41, "E999 SyntaxError: invalid syntax"),
- ]
- assert _update_previous_errors(previous_errors, (15, 18), 3) == [
- Flake8Error("existing_lint_error.py", 12, 41, "E999 SyntaxError: invalid syntax"),
- Flake8Error("existing_lint_error.py", 19, 41, "E999 SyntaxError: invalid syntax"),
- ]
- assert _update_previous_errors([], (15, 18), 3) == []
+# def test_update_previous_errors():
+# previous_errors = [
+# Flake8Error("existing_lint_error.py", 12, 41, "E999 SyntaxError: invalid syntax"),
+# Flake8Error("existing_lint_error.py", 15, 41, "E999 SyntaxError: invalid syntax"),
+# Flake8Error("existing_lint_error.py", 20, 41, "E999 SyntaxError: invalid syntax"),
+# ]
+# assert _update_previous_errors(previous_errors, (15, 18), 3) == [
+# Flake8Error("existing_lint_error.py", 12, 41, "E999 SyntaxError: invalid syntax"),
+# Flake8Error("existing_lint_error.py", 19, 41, "E999 SyntaxError: invalid syntax"),
+# ]
+# assert _update_previous_errors([], (15, 18), 3) == []
def test_flake8_format_no_error_1():