mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-11-27 17:00:37 +00:00
test(goal): skip the shared-handoff case on non-POSIX hosts (#8462)
present_shared_artifact answers 'requires POSIX' on a native Windows host, so the shared-artifact delivery case fails there while the sibling test_shared_artifact_handoff.py already skips non-POSIX. Guard the helper so every shared-handoff caller skips on Windows; POSIX runs are unchanged.
This commit is contained in:
parent
088189683c
commit
6b1680c8da
@ -2,6 +2,7 @@
|
||||
|
||||
import importlib
|
||||
import json
|
||||
import os
|
||||
from types import SimpleNamespace
|
||||
from unittest.mock import AsyncMock
|
||||
from uuid import uuid4
|
||||
@ -53,6 +54,11 @@ async def _run_goal_delivery(
|
||||
tool body. Its deterministic node emits the tool callbacks normally supplied
|
||||
by the agent; only the evaluator model response is fixed, without provider/network access.
|
||||
"""
|
||||
if shared_handoff and os.name != "posix":
|
||||
# The handoff tool answers "requires POSIX" on a native Windows host, so
|
||||
# the shared-artifact case cannot exercise delivery there. The sibling
|
||||
# test_shared_artifact_handoff.py skips non-POSIX for the same reason.
|
||||
pytest.skip("shared artifact handoff requires POSIX")
|
||||
checkpointer = InMemorySaver()
|
||||
failed_terminal_writes = []
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user