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 <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-28 00:07:54 +00:00
1 parent a0cd669f45
commit b8da933fb7
1 file changed
+4
+4
View File
@@ -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"