From 9b8d5e516c5d92123313961482e55cdbad06c8f7 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Mon, 28 Jul 2025 15:03:48 +0200 Subject: [PATCH] Update tests/test_utils_logcfg.py --- tests/test_utils_logcfg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_utils_logcfg.py b/tests/test_utils_logcfg.py index 840317c54..c9d4df93a 100644 --- a/tests/test_utils_logcfg.py +++ b/tests/test_utils_logcfg.py @@ -67,7 +67,8 @@ def test_import_logging_once_per_module(): assert result.returncode == 0, f"Script failed:\n{result.stderr}" stderr = result.stderr + lines = stderr.splitlines() for mod in ["json", "math", "io", "random"]: - count = sum(1 for line in stderr if f"importing: {mod}" in line) + 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}"