From 23a480571a903f67eb81be703ac6e208ed0f181b Mon Sep 17 00:00:00 2001 From: indieindie7 Date: Sat, 31 Oct 2026 22:39:56 -0300 Subject: [PATCH] tests: skip the 0o600 file-mode assert on Windows in the effect log fsync test (#6892) Co-authored-by: Claude Fable 5.1 Co-authored-by: Alexandre Teixeira --- tests/test_effect_journal_persistence.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_effect_journal_persistence.py b/tests/test_effect_journal_persistence.py index 7a74c9a81..c630e5b7d 100644 --- a/tests/test_effect_journal_persistence.py +++ b/tests/test_effect_journal_persistence.py @@ -41,7 +41,8 @@ def test_claim_is_fsynced_to_disk_before_returning(tmp_path, target, monkeypatch on_disk = records(log.path) assert [r["type"] for r in on_disk] == ["claim"] assert fx.EffectClaim.from_dict(on_disk[0]["record"]) == made - assert oct(log.path.stat().st_mode & 0o777) == "0o600" + if os.name != "nt": # Windows has no POSIX permission bits: os.open's 0o600 is not reflected in st_mode + assert oct(log.path.stat().st_mode & 0o777) == "0o600" def test_claim_persistence_failure_raises_and_records_nothing(tmp_path, target):