test/test_aio.py
def loop_exception_handler():
    """
    Replace the current event loop exception handler with one that
    simply stores exceptions in the returned dictionary.

    @return - dictionary that is updated with the last loop exception
    """
    context = {}

    def handler(self, c):
        context.update(c)

    loop = asyncio.get_event_loop()
    orig_handler = loop.get_exception_handler()
    loop.set_exception_handler(handler)
    yield context

    loop.set_exception_handler(orig_handler)

    Replace the current event loop exception handler with one that
    simply stores exceptions in the returned dictionary.

    @return - dictionary that is updated with the last loop exception
    
Replace the current event loop exception handler with one that
simply stores exceptions in the returned dictionary.

@return - dictionary that is updated with the last loop exception
Replace the current event loop exception handler with one that simply stores exceptions in the returned dictionary . @return - dictionary that is updated with the last loop exception
def loop_exception_handler():
    context = {}
    def handler(self, c):
        context.update(c)
    loop = asyncio.get_event_loop()
    orig_handler = loop.get_exception_handler()
    loop.set_exception_handler(handler)
    yield context
    loop.set_exception_handler(orig_handler)
def loop_exception_handler ( ) : context = { } def handler ( self , c ) : context . update ( c ) loop = asyncio . get_event_loop ( ) orig_handler = loop . get_exception_handler ( ) loop . set_exception_handler ( handler ) yield context loop . set_exception_handler ( orig_handler )
Replace the current event loop exception handler with one that
simply stores exceptions in the returned dictionary.
Replace the current event loop exception handler with one that simply stores exceptions in the returned dictionary .
"""
    Replace the current event loop exception handler with one that
    simply stores exceptions in the returned dictionary.

    @return - dictionary that is updated with the last loop exception
    """