Update tests/test_utils_logcfg.py
Run CI Tests / test (push) Successful in 27s

This commit is contained in:
2025-07-28 14:39:28 +02:00
parent 8e3a48bc31
commit b0be79c7c6
+4 -1
View File
@@ -92,7 +92,10 @@ def test_import_logging_once_per_module():
#for mod in ["json", "math", "io", "random"]:
# assert stderr.count(f"importing: {mod}") == 1, f"Module '{mod}' logged multiple times or missing"
top_level_lines = [line for line in stderr.splitlines() if "test_utils_logcfg" in line]
top_level_lines = [
line for line in stderr.splitlines()
if "importing:" in line and "logcfg.py" not in line and "site-packages" not in line
]
for mod in ["json", "math", "io", "random"]:
count = sum(1 for line in top_level_lines if f"importing: {mod}" in line)