-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3.10 compatibility — deprecated loop argument for asnycio.sleep/gather calls #5905
Comments
The legacy examples are completely broken at the moment. They will need to removed or completely refactored, so just ignore them for now. First thing should probably be to figure out why these errors don't appear in CI. They should be causing |
patch taken from comment here: aio-libs/aiohttp#5905 Signed-off-by: Arthur Zamarin <[email protected]>
patch taken from comment here: aio-libs/aiohttp#5905 Signed-off-by: Arthur Zamarin <[email protected]> Signed-off-by: Michał Górny <[email protected]>
patch taken from comment here: aio-libs/aiohttp#5905 Signed-off-by: Arthur Zamarin <[email protected]> Signed-off-by: Michał Górny <[email protected]>
patch taken from comment here: aio-libs/aiohttp#5905 Signed-off-by: Arthur Zamarin <[email protected]> Signed-off-by: Michał Górny <[email protected]>
patch taken from comment here: aio-libs/aiohttp#5905 Signed-off-by: Arthur Zamarin <[email protected]> Signed-off-by: Michał Górny <[email protected]>
Maybe I can solve this. If nobody is working for this, then please assign to me. |
Sounds good to me. Ideally if you can get the deprecation warnings appearing in CI first, then fix the issues that come up (which should already be in the patch at the top). |
OK, did a bit of debugging on why the deprecation warnings are not appearing. The asyncio.gather() does not create a warning unless the task list is empty, so it appears to be a Python bug: Likewise for |
Right, I think we can just remove the loop arguments now, with that mystery solved. |
Describe the bug
Hi,
Tests currently fail with Python 3.10 beta 4 because the loop attribute was removed.
To Reproduce
Run tests with Python 3.10.
Expected behavior
Tests pass.
Logs/tracebacks
Python Version
aiohttp Version
multidict Version
yarl Version
OS
Gentoo unstable amd64.
Related component
Server, Client
Additional context
This seems to fix the tests but I don't know asyncio well enough to be sure that this is the right fix. It also lacks fixes for
examples/legacy/crawl.py
which also uses the deprecated argument.Code of Conduct
The text was updated successfully, but these errors were encountered: