def tearDown(self): GenericBibUploadTest.tearDown(self) if os.path.exists(self.callback_result_path): os.remove(self.callback_result_path) current_task = get_last_taskid() if current_task != self.last_taskid: delete_task(current_task)