From dfdfccc46043a058b7f2c4a7904d715b8fd77ee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Fri, 7 Aug 2026 09:31:02 +0800 Subject: [PATCH] Capture the command output in the parent-directory export test Co-Authored-By: Claude Opus 5 (1M context) --- tools/tests/test_export_llm_input.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/tests/test_export_llm_input.py b/tools/tests/test_export_llm_input.py index 303374c..d85bd73 100644 --- a/tools/tests/test_export_llm_input.py +++ b/tools/tests/test_export_llm_input.py @@ -189,7 +189,9 @@ class TestExportLlmInput(unittest.TestCase): created when missing.""" self.__seed([("Hello", "Adele", "hello lyrics\n")]) nested: Path = self.__dir / "nested" / "dir" / "out.jsonl" - status: int = export_llm_input.main([str(nested)]) + stderr: io.StringIO = io.StringIO() + with redirect_stderr(stderr): + status: int = export_llm_input.main([str(nested)]) self.assertEqual(status, 0) self.assertTrue(nested.exists()) records: list[dict[str, str]] = self.__read_records(