def tearDown(self): from OFS.Uninstalled import broken_klasses from OFS.Uninstalled import broken_klasses_lock broken_klasses_lock.acquire() try: broken_klasses.clear() broken_klasses.update(self.broken_klasses_OLD) finally: broken_klasses_lock.release()
def setUp(self): from OFS.Uninstalled import broken_klasses from OFS.Uninstalled import broken_klasses_lock self.broken_klasses_OLD = {} broken_klasses_lock.acquire() try: self.broken_klasses_OLD.update(broken_klasses) broken_klasses.clear() finally: broken_klasses_lock.release()