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.

Author rkojedzinszky
Recipients asvetlov, rkojedzinszky, yselivanov
Date 2020-09-30.11:01:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601463712.11.0.444677837126.issue41891@roundup.psfhosted.org>
In-reply-to
Content
This code should run without errors:

```
#!/usr/bin/env python

import asyncio

async def task1():
    cv = asyncio.Condition()

    async with cv:
        await asyncio.wait_for(cv.wait(), 10)

async def main(loop):
    task = loop.create_task(task1())

    await asyncio.sleep(0)

    task.cancel()

    res = await asyncio.wait({task})

if __name__ == '__main__':
    loop = asyncio.get_event_loop()

    loop.run_until_complete(main(loop))
```
History
Date User Action Args
2020-09-30 11:01:52rkojedzinszkysetrecipients: + rkojedzinszky, asvetlov, yselivanov
2020-09-30 11:01:52rkojedzinszkysetmessageid: <1601463712.11.0.444677837126.issue41891@roundup.psfhosted.org>
2020-09-30 11:01:52rkojedzinszkylinkissue41891 messages
2020-09-30 11:01:51rkojedzinszkycreate