Skip to content

Commit bad450c

Browse files
author
Cornelius Riemenschneider
committed
Include own logger.
1 parent 5e5804d commit bad450c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

xdist/scheduler/filescope.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from . import LoadScopeScheduling
2+
from py.log import Producer
23

34

45
class LoadFileScheduling(LoadScopeScheduling):
@@ -18,6 +19,14 @@ class LoadFileScheduling(LoadScopeScheduling):
1819
1920
This class behaves very much like LoadScopeScheduling, but with a file-level scope.
2021
"""
22+
23+
def __init(self, config, log=None):
24+
super(LoadFileScheduling, self).__init__(config, log)
25+
if log is None:
26+
self.log = Producer('loadfilesched')
27+
else:
28+
self.log = log.loadfilesched
29+
2130
def _split_scope(self, nodeid):
2231
"""Determine the scope (grouping) of a nodeid.
2332

0 commit comments

Comments
 (0)