Skip to content

Commit 976c6ef

Browse files
committed
Fixed handling of coveragerc in DistMaster.
1 parent d024572 commit 976c6ef

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pytest_cov.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ def __init__(self, options, pluginmanager, start=True):
7979
# slave is started in pytest hook
8080

8181
def start(self, controller_cls, config=None, nodeid=None):
82+
if config is None:
83+
# fake config option for cov_core
84+
class Config(object):
85+
option = self.options
86+
87+
config = Config()
88+
8289
self.cov_controller = controller_cls(
8390
self.options.cov_source,
8491
self.options.cov_report or ['term'],

0 commit comments

Comments
 (0)