Nice usage. ``self.addCleanup(setattr, search, 'RETURN_TOP_KEYWORDS', old_return_top_keywords)`` would work too.