This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: unittest.IsolatedAsyncioTestCase hangs on asyncio.CancelledError
Type: behavior Stage: resolved
Components: asyncio Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Andrey Moiseev, asvetlov, lisroach, yselivanov
Priority: normal Keywords: patch

Created on 2020-02-21 10:12 by Andrey Moiseev, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 22654 lisroach, 2020-10-26 16:25
Messages (1)
msg362402 - (view) Author: Andrey Moiseev (Andrey Moiseev) Date: 2020-02-21 10:12
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()
History
Date User Action Args
2022-04-11 14:59:26adminsetgithub: 83887
2020-10-26 16:28:53lisroachsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2020-10-26 16:25:36lisroachsetkeywords: + patch
nosy: + lisroach

pull_requests: + pull_request21902
stage: patch review
2020-02-21 10:12:48Andrey Moiseevcreate