This commit is contained in:
@@ -51,6 +51,9 @@ def test_custom_log_outputs(levelname, logfunc, message, capsys):
|
|||||||
|
|
||||||
def test_import_logging_once_per_module():
|
def test_import_logging_once_per_module():
|
||||||
code = textwrap.dedent("""
|
code = textwrap.dedent("""
|
||||||
|
import sys
|
||||||
|
for m in ("math", "io", "random"):
|
||||||
|
sys.modules.pop(m, None)
|
||||||
from slic.utils.logcfg import *
|
from slic.utils.logcfg import *
|
||||||
import math
|
import math
|
||||||
import io
|
import io
|
||||||
|
|||||||
Reference in New Issue
Block a user