From 345cd364a375d80b8478c66cbb170ebe8850ebac Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Sun, 11 Oct 2026 19:41:13 -0400 Subject: [PATCH] test: accept Windows directory refusal before piped evaluator input --- tests/test_agent_self_evaluation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))