Skip to content

The agent that grows with you

test(pm): read the PowerShell-written fixture input BOM-tolerant

ethernetfb28672f6327
diff --git a/tests/pm/test_activation_runtime.py b/tests/pm/test_activation_runtime.py
index 8e5b1078c54..38ededa6405 100644
--- a/tests/pm/test_activation_runtime.py
+++ b/tests/pm/test_activation_runtime.py
@@ -39,7 +39,8 @@ def _sync_checkout(tmp_path: Path):
bootstrap = root / ".venv"
if not bootstrap.exists():
shutil.copytree(root / "prepared-bootstrap", bootstrap)
- generation = (root / "input").read_text(encoding="utf-8").strip()
+ # Windows PowerShell's Set-Content writes a BOM.
+ generation = (root / "input").read_text(encoding="utf-8-sig").strip()
facts = runtime_facts_path(root)
selected = facts.parent / "environments" / generation / "venv"
if not selected.exists():