(self)
| 533 | self._delete_files() |
| 534 | |
| 535 | def _delete_files(self): |
| 536 | for file_path in self.to_delete_files: |
| 537 | if not os.path.isfile(file_path): |
| 538 | continue |
| 539 | |
| 540 | try: |
| 541 | os.remove(file_path) |
| 542 | except Exception: |
| 543 | pass |
| 544 | |
| 545 | for file_path in self.to_delete_directories: |
| 546 | if not os.path.isdir(file_path): |
| 547 | continue |
| 548 | |
| 549 | try: |
| 550 | shutil.rmtree(file_path) |
| 551 | except Exception: |
| 552 | pass |
| 553 | |
| 554 | |
| 555 | class IntegrationTestCase(TestCase): |