Leave out of a task-bench fix a change Haiku makes to a PHP or JavaScript test that PHPUnit or node --test finds by its name

This commit is contained in:
2026-11-27 21:57:32 +01:00
parent 2abe472919
commit 53b0f6ed30
7 changed files with 58 additions and 8 deletions
+3 -3
View File
@@ -11,7 +11,7 @@ import typing
from task_bench.rust_test_modules import declared, homes, with_tests_of
from mutate_changes.tool_process import failed, Ran
from failure import Failure
from mutate_changes.changed_lines import is_test
from task_bench.framework_tests import is_test_file
from task_bench.api_proxy import PORT
MODEL = "claude-haiku-5-5"
@@ -205,8 +205,8 @@ def keep_rust_tests(planted_file: str, target: str) -> None:
def of_tests(path: str, rust_tests: typing.AbstractSet[str] = frozenset()) -> bool:
"""Whether path is a test by its path alone, or one of rust_tests."""
return is_test(path) or "testdata" in pathlib.PurePath(path).parts or path in rust_tests
"""Whether path is a test by its path alone, as `is_test_file` tells it, or one of rust_tests."""
return is_test_file(path) or "testdata" in pathlib.PurePath(path).parts or path in rust_tests
def rust_test_files(tree: str) -> set[str] | None: