def tearDown(self): # Remove directories for path in self._dirs_to_remove: shutil.rmtree(path, ignore_errors=True) restore_indexes() restore_tags() WStoreSeleniumTestCase.tearDown(self)
def tearDown(self): # Remove directories for path in self._dirs_to_remove: try: files = os.listdir(path) for f in files: file_path = os.path.join(path, f) os.remove(file_path) os.rmdir(path) except: pass restore_indexes() restore_tags() WStoreSeleniumTestCase.tearDown(self)