

def _delete_files(self):
    for file_path in self.to_delete_files:
        if (not os.path.isfile(file_path)):
            continue
        try:
            os.remove(file_path)
        except Exception:
            pass
    for file_path in self.to_delete_directories:
        if (not os.path.isdir(file_path)):
            continue
        try:
            shutil.rmtree(file_path)
        except Exception:
            pass

dataset/ETHPy150Open StackStorm/st2/st2tests/st2tests/base.py CleanFilesTestCase._delete_files/original