Nathaniel Smith <n...@pobox.com> added the comment:

Question: there are lots of tests -- for example 
test.test_asyncio.test_tasks.CTaskSubclass_PyFuture_Tests.test_wait_with_exception,
 which freezes for me -- that use 'yield from asyncio.sleep(...)', e.g.:

        @asyncio.coroutine
        def sleeper():
            yield from asyncio.sleep(0.15, loop=loop)
            raise ZeroDivisionError('really')

But Andrew switch asyncio.sleep to be an ordinary 'async def' coroutine back in 
December. How does this work at all?

My tentative hypothesis about the actual bug is that the code above is working 
in regular mode, but stops working in debug mode, probably because in debug 
mode @asyncio.coroutine takes a different path involving CoroWrapper and we 
changed CoroWrapper. But I'm having trouble knowing how to verify or fix that 
because I don't understand how it ever works in the first place :-)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32636>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to