Skip to content
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

[3.10] gh-93453: Only emit deprecation warning in asyncio.get_event_loop when a new event loop is created #100059

Merged
merged 2 commits into from
Dec 6, 2022

Conversation

ambv
Copy link
Contributor

@ambv ambv commented Dec 6, 2022

It no longer emits a deprecation warning if the current event loop was set.

(cherry picked from commit 3fae04b)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Łukasz Langa lukasz@langa.pl

Note: this backport also contains a change to tests_asyncio.test_tasks.BaseTaskTests.test_as_completed_coroutine_use_global_loop which was later removed in GH-31964 by Yury so is absent from Serhiy's changes to 3.11 and 3.12.

…o.get_event_loop when a new event loop is created (pythonGH-99949)

It no longer emits a deprecation warning if the current event loop was set.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 3fae04b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/library/asyncio-eventloop.rst Outdated Show resolved Hide resolved
Doc/library/asyncio-policy.rst Show resolved Hide resolved
Lib/test/test_asyncio/test_tasks.py Show resolved Hide resolved
@ambv ambv merged commit 300d812 into python:3.10 Dec 6, 2022
@ambv ambv deleted the backport-3fae04b-3.10 branch December 6, 2022 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants