def teardown(self): super().teardown() event.remove(Engine, 'before_cursor_execute', self.record_query)