From 98ae25c12cbc5a800579b3f7f24011501d524ca9 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sun, 3 Jun 2018 12:01:09 -0300 Subject: [PATCH] Fix __init__ declaration --- xdist/scheduler/filescope.py | 2 +- xdist/scheduler/loadscope.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xdist/scheduler/filescope.py b/xdist/scheduler/filescope.py index 6e1f066..b6c0301 100644 --- a/xdist/scheduler/filescope.py +++ b/xdist/scheduler/filescope.py @@ -20,7 +20,7 @@ class LoadFileScheduling(LoadScopeScheduling): This class behaves very much like LoadScopeScheduling, but with a file-level scope. """ - def __init(self, config, log=None): + def __init__(self, config, log=None): super(LoadFileScheduling, self).__init__(config, log) if log is None: self.log = Producer('loadfilesched') diff --git a/xdist/scheduler/loadscope.py b/xdist/scheduler/loadscope.py index 3c8381a..3301133 100644 --- a/xdist/scheduler/loadscope.py +++ b/xdist/scheduler/loadscope.py @@ -6,7 +6,7 @@ from xdist.report import report_collection_diff from xdist.workermanage import parse_spec_config -class LoadScopeScheduling: +class LoadScopeScheduling(object): """Implement load scheduling across nodes, but grouping test by scope. This distributes the tests collected across all nodes so each test is run