Skip to content

Commit

Permalink
Update Lib/test/test_asyncio/test_events.py
Browse files Browse the repository at this point in the history
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
  • Loading branch information
graingert and gvanrossum authored Oct 29, 2023
1 parent c081c67 commit 1e326bd
Showing 1 changed file with 1 addition and 1 deletion.
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 comments on commit 1e326bd

Please sign in to comment.