[New-bugs-announce] [issue39706] unittest.IsolatedAsyncioTestCase hangs on asyncio.CancelledError

Andrey Moiseev report at bugs.python.org
Fri Feb 21 05:12:48 EST 2020


New submission from Andrey Moiseev <o2g.org.ru at gmail.com>:

The following code hangs:

import asyncio
import unittest


class TestCancellation(unittest.IsolatedAsyncioTestCase):

    async def test_works(self):
        raise asyncio.CancelledError()


if __name__ == '__main__':
    unittest.main()

----------
components: asyncio
messages: 362402
nosy: Andrey Moiseev, asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: unittest.IsolatedAsyncioTestCase hangs on asyncio.CancelledError
type: behavior

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39706>
_______________________________________


More information about the New-bugs-announce mailing list