Kill the mutants that survived on the release's changed lines, and say 1 minute, not 1 minutes
CI / tests (pull_request) Successful in 4m10s

This commit is contained in:
2026-11-27 13:08:58 +01:00
parent 3b4ff44e7a
commit 72c5903cb0
4 changed files with 149 additions and 3 deletions
+8
View File
@@ -560,6 +560,14 @@ class RunOutcomesTest(unittest.TestCase):
task = dataclasses.replace(self.task, trees={"base": str(self.folder / "gone"), "head": str(self.tree)})
self.assertFailsWith(main.fixed(task, "base", 1, self.containers(), self.folder, main.BUG), "could not copy bug 1's tree at the base: ")
def test_a_stream_that_cannot_be_read_after_the_fix_fails_the_bench_naming_the_stream(self):
stream = self.folder / "runs" / "bug-1-base-1.jsonl"
def removing_the_stream(args, *, seconds, stdin=None, stdout=None, stderr=None):
stream.unlink(missing_ok=True)
return Ran(0, "")
containers = dataclasses.replace(self.containers(), docker=removing_the_stream)
self.assertFailsWith(main.fixed(self.task, "base", 1, containers, self.folder, main.BUG), f"could not read {stream}: ")
def test_failing_to_make_the_tree_that_checks_a_fix_fails_the_bench_naming_the_bug_and_side(self):
(self.folder / "check").mkdir()
self.assertFailsWith(main.fixed(self.task, "base", 1, self.containers(Ran(0, "")), self.folder, main.BUG), "could not make the tree that checks bug 1's fix at the base: ")