'The IOLoop examines exceptions from Futures and logs them.'

def test_exception_logging_future(self):

    with NullContext():
        @gen.coroutine
        def callback():
            self.io_loop.add_callback(self.stop)
            (1 / 0)
        self.io_loop.add_callback(callback)
        with ExpectLog(app_log, 'Exception    in    callback'):
            self.wait()
