def import_(self, file, module_name):
    loader = self.loader(module_name, file)
    with warnings.catch_warnings():
        warnings.simplefilter('ignore', DeprecationWarning)
        module = loader.load_module(module_name)
    self.assertIn(module_name, sys.modules)
def import_(self, file, module_name):
    loader = self.loader(module_name, file)
    with warnings.catch_warnings():
        warnings.simplefilter('ignore', DeprecationWarning)
        module = loader.load_module(module_name)
    self.assertIn(module_name, sys.modules)