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: Wrong warning in asyncio debug mode
Type: Stage:
Components: asyncio Versions: Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Alex Alex, asvetlov, yselivanov
Priority: normal Keywords:

Created on 2020-06-16 14:14 by Alex Alex, last changed 2022-04-11 14:59 by admin.

Files
File name Uploaded Description Edit
asyncio-wrong-warn.py Alex Alex, 2020-06-16 14:14
Messages (1)
msg371659 - (view) Author: Alex Alex (Alex Alex) Date: 2020-06-16 14:14
I run code in example and get message like:
Executing <Handle <TaskWakeupMethWrapper object at 0x7f1c50f3ecd8>(<Future finis...events.py:396>) created at /usr/lib/python3.7/asyncio/futures.py:288> took 2.000 seconds

It say that coroutine run for 2 second but it was run for 5 second. Also if I comment part in qwe function after await I won't get any warning, but should.
History
Date User Action Args
2022-04-11 14:59:32adminsetgithub: 85164
2020-06-16 14:14:39Alex Alexcreate