Skip to content

The agent that grows with you

test: use the hermes_yaml seam in the non-finite retention test

Austin Pickett8c917bb7f686
diff --git a/tests/test_session_spillover_cleanup.py b/tests/test_session_spillover_cleanup.py
index 904690c377b..c348f5b6b43 100644
--- a/tests/test_session_spillover_cleanup.py
+++ b/tests/test_session_spillover_cleanup.py
@@ -162,7 +162,7 @@ def test_nonfinite_retention_falls_back_and_still_sweeps(_home):
"""YAML ``.inf`` / ``.nan`` used to raise out of ``_spillover_retention_hours`` after the
once-per-home flag was set — every later sweep silently skipped. Fallback cleanup must
actually remove a stale file."""
- import yaml
+ import hermes_yaml as yaml # the repo's YAML seam; PyYAML is not a pinned test dep
with (_home / "config.yaml").open("w", encoding="utf-8") as fh:
yaml.safe_dump({"sessions": {"retention_days": float("inf")}}, fh)