Merge pull request #82 from moreati/imported-via-the-scenic-route

Fix TypeError while initiliazing ImporterMixin
pull/87/head
dw 7 years ago committed by GitHub
commit d708405126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save