From 4ddb443c12bcd10bf994464346af21df72fde49d Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Sat, 18 Jul 2026 10:24:45 -0700 Subject: [PATCH] fix(lint): explicit encoding on write_text in livetest harness (PLW1514) --- scripts/tool_search_livetest2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tool_search_livetest2.py b/scripts/tool_search_livetest2.py index d444e545cf16..b81f91f91afd 100644 --- a/scripts/tool_search_livetest2.py +++ b/scripts/tool_search_livetest2.py @@ -65,7 +65,7 @@ def run_one(scenario: Dict[str, Any], mode: str, rep: int, out_dir: Path) -> Dic n_registered = base.register_fake_tools() Path("/tmp/livetest").mkdir(exist_ok=True) - (Path("/tmp/livetest/notes.txt")).write_text("Hello from the test fixture.\n") + (Path("/tmp/livetest/notes.txt")).write_text("Hello from the test fixture.\n", encoding="utf-8") from tools.registry import registry original_dispatch = registry.dispatch