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 iritkatriel
Recipients JDLH, asvetlov, iritkatriel, yselivanov
Date 2022-03-21.10:33:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647858807.09.0.438381626486.issue34071@roundup.psfhosted.org>
In-reply-to
Content
This is a TypeError now, so there shouldn't be issues with unit tests anymore:

>>> task = asyncio.get_event_loop().create_task(ag())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/iritkatriel/src/cpython/Lib/asyncio/base_events.py", line 436, in create_task
    task = tasks.Task(coro, loop=self, name=name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: a coroutine was expected, got <async_generator object ag at 0x10460a9c0>
History
Date User Action Args
2022-03-21 10:33:27iritkatrielsetrecipients: + iritkatriel, asvetlov, yselivanov, JDLH
2022-03-21 10:33:27iritkatrielsetmessageid: <1647858807.09.0.438381626486.issue34071@roundup.psfhosted.org>
2022-03-21 10:33:27iritkatriellinkissue34071 messages
2022-03-21 10:33:26iritkatrielcreate