def remove_swapmem(self):
    swapfile = SWAPAllocator.SWAP_FILE_PATH
    run_command_or_raise(['swapoff', swapfile], raise_exception=False)
    try:
        os.unlink(swapfile)
    finally:
        pass
def remove_swapmem(self):
    swapfile = SWAPAllocator.SWAP_FILE_PATH
    run_command_or_raise(['swapoff', swapfile], raise_exception=False)
    try:
        os.unlink(swapfile)
    finally:
        pass