Fix TypeError while initiliazing ImporterMixin

Since f44356af32 mitogen.core.Importer()
takes a Router instance.
This commit is contained in:
Alex Willmer 2018-02-14 23:04:10 +00:00 committed by David Wilson
parent eb1ad66469
commit 9ccff0f5d1
1 changed files with 1 additions and 1 deletions

View File

@ -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)