The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(agent): the outbox EXDEV test checks POSIX mode bits only on POSIX
Teknium7dfb7daebba7
diff --git a/tests/agent/test_runtime_session_store.py b/tests/agent/test_runtime_session_store.pyindex 63869948c52..408d8291054 100644--- a/tests/agent/test_runtime_session_store.py+++ b/tests/agent/test_runtime_session_store.py@@ -95,7 +95,7 @@ def test_outbox_filesystem_failure_is_sticky(tmp_path, monkeypatch):def test_outbox_journal_survives_a_cross_device_rename(tmp_path, monkeypatch):"""The journal publishes through utils.atomic_replace: a bind-mounted outbox whose renamefails EXDEV falls back to copy+fsync instead of failing every worker write, and the- journal stays owner-only."""+ journal stays owner-only (POSIX mode bits; Windows has none to check)."""import errnoimport statreal_replace = os.replace@@ -108,7 +108,8 @@ def test_outbox_journal_survives_a_cross_device_rename(tmp_path, monkeypatch):try:journal = store.pathassert json.loads(journal.read_text())['scope'] == {'session_id': 's'}- assert stat.S_IMODE(journal.stat().st_mode) == 0o600+ if os.name == 'posix':+ assert stat.S_IMODE(journal.stat().st_mode) == 0o600assert [p.name for p in journal.parent.iterdir() if p.name.startswith('.pending-')] == []finally:store._outbox_owner.close()