[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:
import unittest
class TestHangsForever(unittest.IsolatedAsyncioTestCase):
async def test_hangs_forever(self):
raise BaseException("Hangs forever")
if __name__ == "__main__":
import unittest
unittest.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.
----------
components: asyncio
messages: 358690
nosy: asvetlov, fornellas, yselivanov
priority: normal
severity: normal
status: open
title: IsolatedAsyncioTestCase freezes when exception is raised
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39101>
_______________________________________
More information about the New-bugs-announce
mailing list