The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
chore(tests): explicit utf-8 encoding in test_skill_commands (windows-footgun ratchet)
teknium1a3407103898e
diff --git a/tests/agent/test_skill_commands.py b/tests/agent/test_skill_commands.pyindex e61012d1248..fb27f4ced7f 100644--- a/tests/agent/test_skill_commands.py+++ b/tests/agent/test_skill_commands.py@@ -34,7 +34,7 @@ description: Description for {name}.{body}"""- (skill_dir / "SKILL.md").write_text(content)+ (skill_dir / "SKILL.md").write_text(content, encoding="utf-8")return skill_dir@@ -267,7 +267,7 @@ class TestScanSkillCommands:profile_b = tmp_path / "profiles" / "b"_make_skill(profile_b / "skills", "b-only", body="Body of b-only.")- (profile_b / "config.yaml").write_text("{}\n")+ (profile_b / "config.yaml").write_text("{}\n", encoding="utf-8")with (patch.object(sc_mod, "_skill_commands", {}),@@ -717,7 +717,7 @@ class TestBuildSkillInvocationMessage:skill_dir = _make_skill(tmp_path, "test-skill")references = skill_dir / "references"references.mkdir()- (references / "api.md").write_text("reference")+ (references / "api.md").write_text("reference", encoding="utf-8")scan_skill_commands()msg = build_skill_invocation_message("/test-skill", "do stuff")@@ -744,7 +744,7 @@ class TestSkillDirectoryHeader:with patch("tools.skills_tool.SKILLS_DIR", tmp_path):skill_dir = _make_skill(tmp_path, "scripted-skill")(skill_dir / "scripts").mkdir()- (skill_dir / "scripts" / "run.js").write_text("console.log('hi')")+ (skill_dir / "scripts" / "run.js").write_text("console.log('hi')", encoding="utf-8")scan_skill_commands()msg = build_skill_invocation_message("/scripted-skill")