8000 gh-94597: deprecate asyncio.set_event_loop_policy by graingert · Pull Request #110728 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-94597: deprecate asyncio.set_event_loop_policy #110728

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

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Lib/test/test_asyncio/test_events.py
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
  • Loading branch information
graingert and gvanrossum authored Oct 29, 2023
commit 1e326bd1adef3d8760a16f6f32fceeaa375882dd
2 changes: 1 addition & 1 deletion Lib/test/test_asyncio/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -2691,7 +2691,7 @@ def test_set_event_loop_policy(self):
old_policy = asyncio.get_event_loop_policy()

policy = asyncio.DefaultEventLoopPolicy()
with self.assertWarns(DeprecationWarning) as cm:
with self.assertWarns(DeprecationWarning):
asyncio.set_event_loop_policy(policy)
self.assertIs(policy, asyncio.get_event_loop_policy())
self.assertIsNot(policy, old_policy)
Expand Down
0