Fix TypeError while initiliazing ImporterMixin
Since f44356af32
mitogen.core.Importer()
takes a Router instance.
This commit is contained in:
parent
eb1ad66469
commit
9ccff0f5d1
|
@ -18,7 +18,7 @@ class ImporterMixin(testlib.RouterMixin):
|
|||
def setUp(self):
|
||||
super(ImporterMixin, self).setUp()
|
||||
self.context = mock.Mock()
|
||||
self.importer = mitogen.core.Importer(self.context, '')
|
||||
self.importer = mitogen.core.Importer(self.router, self.context, '')
|
||||
|
||||
def tearDown(self):
|
||||
sys.modules.pop(self.modname, None)
|
||||
|
|
Loading…
Reference in New Issue