fix(lint): explicit encoding on write_text in livetest harness (PLW1514)

This commit is contained in:
teknium1 2026-07-18 10:24:45 -07:00 committed by Teknium
parent 3ee3394907
commit 4ddb443c12
No known key found for this signature in database

View file

@ -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