diff --git a/workspace/tests/test_executor_helpers.py b/workspace/tests/test_executor_helpers.py index a3b0367b..0aa0c991 100644 --- a/workspace/tests/test_executor_helpers.py +++ b/workspace/tests/test_executor_helpers.py @@ -761,7 +761,7 @@ def test_sanitize_agent_error_stderr_and_exc(): """exception + stderr: exc type is the tag, stderr is the body.""" err = ValueError("this should not appear") out = sanitize_agent_error(exc=err, stderr="rate limit exceeded") - assert "ValueError" not in out # exc class is overridden by stderr + assert "ValueError" in out # exc class IS the tag when stderr is provided assert "rate limit exceeded" in out