From 9b6450fcbbc8fef0662c785252c63a0748ba8d37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Thu, 20 Aug 2026 20:51:18 +0800 Subject: [PATCH] Capture the stderr summary in the request-preview tests Co-Authored-By: Claude Fable 5 --- tools/tests/test_run_llm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/tests/test_run_llm.py b/tools/tests/test_run_llm.py index aff3956..c8f908a 100644 --- a/tools/tests/test_run_llm.py +++ b/tools/tests/test_run_llm.py @@ -188,7 +188,8 @@ class TestRequestBuilding(RunLLMTestCase): :return: The parsed request. """ stdout: io.StringIO = io.StringIO() - with redirect_stdout(stdout): + stderr: io.StringIO = io.StringIO() + with redirect_stdout(stdout), redirect_stderr(stderr): run_llm.main([ str(self.__prompt), str(self.__input), str(self.__archive_dir), "--dry-run"] + extra_argv)