def test_load_module_API(self):

    class Tester(self.abc.FileLoader):

        def get_source(self, _):
            return 'attr = 42'

        def is_package(self, _):
            return False
    loader = Tester('blah', 'blah.py')
    self.addCleanup(unload, 'blah')
    with warnings.catch_warnings():
        warnings.simplefilter('ignore', DeprecationWarning)
        module = loader.load_module()
def test_load_module_API(self):

    class Tester(self.abc.FileLoader):

        def get_source(self, _):
            return 'attr = 42'

        def is_package(self, _):
            return False
    loader = Tester('blah', 'blah.py')
    self.addCleanup(unload, 'blah')
    with warnings.catch_warnings():
        warnings.simplefilter('ignore', DeprecationWarning)
        module = loader.load_module()