From b8da933fb730a4e85419bb572a17087ba77373fa Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 28 Feb 2026 00:07:54 +0000 Subject: [PATCH] fix: skip pty and termios on windows for test_ai_tui_agent_harness.py Added `pytest.importorskip("pty")` and `pytest.importorskip("termios")` before `_load_harness_module()` call to properly skip `test_ai_tui_agent_harness.py` on Windows environments where these modules are not available. This prevents the `ModuleNotFoundError: No module named 'termios'` error during pytest collection. Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- src/tests/test_ai_tui_agent_harness.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tests/test_ai_tui_agent_harness.py b/src/tests/test_ai_tui_agent_harness.py index ed228a38..52611ee1 100644 --- a/src/tests/test_ai_tui_agent_harness.py +++ b/src/tests/test_ai_tui_agent_harness.py @@ -7,6 +7,10 @@ import sys import pytest +pytest.importorskip("pty") +pytest.importorskip("termios") + + def _load_harness_module(): repo_root = Path(__file__).resolve().parents[2] script_path = repo_root / "scripts" / "ai_tui_agent_test.py"