From f976d806b6869f75e9aa0a152431ac2052925319 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Fri, 29 Aug 2025 11:50:17 +0200 Subject: [PATCH] Update tests/test_utils_logcfg.py --- tests/test_utils_logcfg.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_utils_logcfg.py b/tests/test_utils_logcfg.py index 3f881ec8..db86c782 100644 --- a/tests/test_utils_logcfg.py +++ b/tests/test_utils_logcfg.py @@ -51,6 +51,9 @@ def test_custom_log_outputs(levelname, logfunc, message, capsys): def test_import_logging_once_per_module(): code = textwrap.dedent(""" + import sys + for m in ("math", "io", "random"): + sys.modules.pop(m, None) from slic.utils.logcfg import * import math import io