def test_cleanup_hook_error(self):
        hook = self.environment._hookmanager.hooks[1]
        self.environment.deallocate()
        self.assertTrue(hook.clean)
Errors in hooks cleanup are handled.
dataset/ETHPy150Open F-Secure/see/see/test/environment_test.py/EnvironmentTest.test_cleanup_hook_error