From 27ac6eb48b294dac93b19c75afc8f04d66e760a8 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Fri, 29 Aug 2025 11:43:04 +0200 Subject: [PATCH] Update tests/test_utils_logcfg.py --- tests/test_utils_logcfg.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_utils_logcfg.py b/tests/test_utils_logcfg.py index f19321d0c..3f881ec89 100644 --- a/tests/test_utils_logcfg.py +++ b/tests/test_utils_logcfg.py @@ -70,9 +70,8 @@ def test_import_logging_once_per_module(): assert result.returncode == 0, f"Script failed:\n{result.stderr}" - stderr = result.stderr - print(stderr) - lines = stderr.splitlines() + output = result.stdout + result.stderr + lines = output.splitlines() for mod in ["math", "io", "random"]: count = sum(1 for line in lines if f"importing: {mod}" in line) assert count == 1, f"Expected 1 import log for '{mod}', found {count}"