Skip to content

Commit c7feaa2

Browse files
committed
Skip POSIX mode assertions on Windows
1 parent baec192 commit c7feaa2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/test_harbor_kernel_control.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,9 @@ def test_start_writes_state_and_credential_free_metadata(
324324
state = json.loads(module.STATE_FILE.read_text())
325325
assert state["status"] == "created"
326326
assert state["cdp_url"].startswith("wss://kernel.example")
327-
assert oct(module.STATE_FILE.stat().st_mode & 0o777) == "0o600"
328-
assert oct(module.CDP_URL_FILE.stat().st_mode & 0o777) == "0o600"
327+
if sys.platform != "win32":
328+
assert oct(module.STATE_FILE.stat().st_mode & 0o777) == "0o600"
329+
assert oct(module.CDP_URL_FILE.stat().st_mode & 0o777) == "0o600"
329330

330331
metadata = json.loads(module.METADATA_FILE.read_text())
331332
assert metadata["session_id"] == "sess-123"

0 commit comments

Comments
 (0)