The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(state): mark the checkpoint-guard tests linux_only instead of a bare skipif
kshitijk4poorae94e349ac7a
diff --git a/tests/hermes_state/test_deleted_wal_checkpoint_guard.py b/tests/hermes_state/test_deleted_wal_checkpoint_guard.pyindex 8854b2a2485..a5748fd62a2 100644--- a/tests/hermes_state/test_deleted_wal_checkpoint_guard.py+++ b/tests/hermes_state/test_deleted_wal_checkpoint_guard.py@@ -60,10 +60,7 @@ def _unlink_sidecars(db_path: Path) -> None:os.unlink(sidecar)- not sys.platform.startswith("linux"),- reason="deleted-WAL write halt uses Linux unlink semantics",-)[email protected]_only # deleted-WAL write halt uses Linux unlink semanticsdef test_close_after_halt_runs_no_checkpoint(tmp_path, force_wal):"""A writer halted by DeletedWalGenerationError must not checkpoint on close()."""path = tmp_path / "state.db"@@ -89,10 +86,7 @@ def test_close_after_halt_runs_no_checkpoint(tmp_path, force_wal):)- not sys.platform.startswith("linux"),- reason="deleted-WAL write halt uses Linux unlink semantics",-)[email protected]_only # deleted-WAL write halt uses Linux unlink semanticsdef test_halt_disables_close_time_checkpoint(tmp_path, force_wal):"""On 3.12+ the halt must also call _disable_close_time_checkpoint()."""import sqlite3@@ -127,10 +121,7 @@ def test_halt_disables_close_time_checkpoint(tmp_path, force_wal):db.close()- not sys.platform.startswith("linux"),- reason="deleted-WAL write halt uses Linux unlink semantics",-)[email protected]_only # deleted-WAL write halt uses Linux unlink semanticsdef test_try_wal_checkpoint_skips_when_generation_lost(tmp_path, force_wal):"""The periodic _try_wal_checkpoint() must skip when _db_wal_generation_lost is set."""path = tmp_path / "state.db"