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