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

Fix TypeError while initiliazing ImporterMixin
This commit is contained in:
dw 2018-02-15 05:26:05 +05:45 committed by GitHub
commit d708405126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)