[New-bugs-announce] [issue39101] IsolatedAsyncioTestCase freezes when exception is raised
Fabio Pugliese Ornellas
report at bugs.python.org
Thu Dec 19 14:44:59 EST 2019
New submission from Fabio Pugliese Ornellas <fabio.ornellas at gmail.com>:
IsolatedAsyncioTestCase freezes whenever an exception that inherits from BaseException is raised:
async def test_hangs_forever(self):
raise BaseException("Hangs forever")
if __name__ == "__main__":
A kind of similar issue present on 3.7 was fixed on 3.8 here https://github.com/python/cpython/blob/3.8/Lib/asyncio/events.py#L84, where BaseExceptions would not be correctly handled by the event loop, this seems somewhat related.
I had a look at IsolatedAsyncioTestCase implementation, did not spot any obvious broken thing there, I could use some light here. Thanks.
nosy: asvetlov, fornellas, yselivanov
title: IsolatedAsyncioTestCase freezes when exception is raised
versions: Python 3.8
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce