The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(pm): explicit encodings in the lease re-selection fixture
ethernet97eab53215be
diff --git a/tests/pm/test_lease_reselection.py b/tests/pm/test_lease_reselection.pyindex 99d846d6f22..5a46ffd089f 100644--- a/tests/pm/test_lease_reselection.py+++ b/tests/pm/test_lease_reselection.py@@ -18,13 +18,13 @@ def generations(tmp_path, monkeypatch):for name in ("first", "second"):venv = state / "environments" / name / "venv"venv.mkdir(parents=True)- (venv / "pyvenv.cfg").write_text("version = 3.11")+ (venv / "pyvenv.cfg").write_text("version = 3.11", encoding="utf-8")site_packages(venv).mkdir(parents=True)(venv.parent / ".lease-managed").touch()def select(name):environment = state / "environments" / name / "venv"- runtime_facts_path(repo).write_text(json.dumps({"packages": {"venv": {"environment": str(environment)}}}))+ runtime_facts_path(repo).write_text(json.dumps({"packages": {"venv": {"environment": str(environment)}}}), encoding="utf-8")return environment.resolve()return repo, state, select