This commit is contained in:
1 parent
272a230750
commit
f976d806b6
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user