def cleanUpModules(self):
        modules = self.getModules()
        modules.sort()
        modules.reverse()
        for module in modules:
            try:
                del sys.modules[module]
            except __HOLE__:
                pass
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/trial/test/packages.py/PackageTest.cleanUpModules