From f158779c6007ebe3c09c043bb575c91529c59639 Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Sat, 7 Nov 2026 21:53:54 +0800 Subject: [PATCH] test(exec): restrict launcher simulation to Unix --- tests/tools/test_sandbox_launcher_compat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/tools/test_sandbox_launcher_compat.py b/tests/tools/test_sandbox_launcher_compat.py index 1f84a3493..14c9b3ac1 100644 --- a/tests/tools/test_sandbox_launcher_compat.py +++ b/tests/tools/test_sandbox_launcher_compat.py @@ -2,9 +2,12 @@ import os +import pytest + from nanobot.agent.tools.shell import ExecTool +@pytest.mark.skipif(os.name != "posix", reason="requires Unix launcher preparation") async def test_nonstandard_bwrap_is_not_silently_run_without_sandbox(tmp_path, monkeypatch): workspace = tmp_path / "workspace" workspace.mkdir() @@ -17,7 +20,6 @@ async def test_nonstandard_bwrap_is_not_silently_run_without_sandbox(tmp_path, m launcher.chmod(0o700) marker = workspace / "command-ran" - monkeypatch.setattr("nanobot.agent.tools.shell._IS_WINDOWS", False) monkeypatch.setattr(os, "defpath", str(default_bin)) monkeypatch.setenv("PATH", str(extra_bin)) monkeypatch.setattr("nanobot.agent.tools.sandbox.get_media_dir", lambda: workspace)