def teardown(self): try: self.mnemosyne.finalise() # Avoid having multiple component_managers active. from mnemosyne.libmnemosyne.component_manager import clear_component_managers clear_component_managers() except: # Can throw some errors when we artificially mutilate plugins. self.mnemosyne.database().abandon()
def dont_finalise(): from mnemosyne.libmnemosyne.component_manager import clear_component_managers clear_component_managers()
def teardown(self): self.mnemosyne.finalise() # Avoid having multiple component_managers active. from mnemosyne.libmnemosyne.component_manager import clear_component_managers clear_component_managers()