def _unimportPythonModule(self, module, deleteSource=False):
        modulePath = module.__name__.split('.')
        packageName = '.'.join(modulePath[:-1])
        moduleName = modulePath[-1]

        delattr(sys.modules[packageName], moduleName)
        del sys.modules[module.__name__]
        for ext in ['c', 'o'] + (deleteSource and [''] or []):
            try:
                os.remove(module.__file__ + ext)
            except __HOLE__, ose:
                if ose.errno != errno.ENOENT:
                    raise
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_plugin.py/PluginTestCase._unimportPythonModule