gh-127949: deprecate asyncio.get_event_loop_policy (#128053)

This deprecates `asyncio.get_event_loop_policy` and will be removed in Python 3.16.
This commit is contained in:
Kumar Aditya 2024-12-18 18:04:20 +05:30 committed by GitHub
parent bad3cdefa8
commit dbd08fb60d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 40 additions and 26 deletions

View file

@ -886,8 +886,7 @@ if sys.platform != 'win32':
def setUp(self):
super().setUp()
policy = asyncio.get_event_loop_policy()
self.loop = policy.new_event_loop()
self.loop = asyncio.new_event_loop()
self.set_event_loop(self.loop)
def test_watcher_implementation(self):