def expect_import_error(self, mod_name):
        try:
            run_module(mod_name)
        except __HOLE__:
            pass
        else:
            self.fail("Expected import error for " + mod_name)
dataset/ETHPy150Open babble/babble/include/jython/Lib/test/test_runpy.py/RunModuleTest.expect_import_error