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 asksol
Recipients asksol, asvetlov, ned.deily, twisteroid ambassador, xtreak, yselivanov
Date 2019-03-23.05:35:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1553319334.81.0.179984979178.issue36403@roundup.psfhosted.org>
In-reply-to
Content
Ah, so the extra call_soon means it needs a:

[code]
loop.run_until_complete(asyncio.sleep(0))```
[/code]

before the self.assertTrue(it.finally_executed)

to finish executing agen.close().

Why is create_task different? Does it execute an iteration of the generator immediately?

Seems good for this behavior to be consistent, but not sure how difficult that would be.
History
Date User Action Args
2019-03-23 05:35:34asksolsetrecipients: + asksol, ned.deily, asvetlov, yselivanov, twisteroid ambassador, xtreak
2019-03-23 05:35:34asksolsetmessageid: <1553319334.81.0.179984979178.issue36403@roundup.psfhosted.org>
2019-03-23 05:35:34asksollinkissue36403 messages
2019-03-23 05:35:34asksolcreate