Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

test: accept Windows directory refusal before piped evaluator input

haelyra345cd364a375
diff --git a/tests/test_agent_self_evaluation.py b/tests/test_agent_self_evaluation.py
index 894d71213..23e22653b 100644
--- a/tests/test_agent_self_evaluation.py
+++ b/tests/test_agent_self_evaluation.py
@@ -83,7 +83,7 @@ def test_invalid_output_is_rejected_before_reading_pipe(
isatty=lambda: False,
read=lambda: pytest.fail("Required output must be validated before waiting for piped input"),
))
- error = IsADirectoryError if output_kind == "directory" else SystemExit
+ error = (IsADirectoryError, PermissionError) if output_kind == "directory" else SystemExit
with pytest.raises(error):
evaluator._read_input(args(output=str(output)))