Move logger to module level
@@ -42,6 +42,9 @@ if TYPE_CHECKING:
import pynguin.testcase.variablereference as vr
+_LOGGER = logging.getLogger(__name__)
+
+
class ExecutionContext:
"""Contains information required in the context of an execution.
e.g. the used variables, modules and
@@ -521,8 +524,6 @@ class ExecutionTracer:
"""Tracks branch distances and covered statements during execution.
The results are stored in an execution trace."""
- _logger = logging.getLogger(__name__)
-
# Contains static information about how branch distances
# for certain op codes should be computed.
# The returned tuple for each computation is (true distance, false distance).
