mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-130322: drop deprecation of asyncio.set_event_loop
(#132349)
This commit is contained in:
parent
e6ef47ac22
commit
05d27a84f4
16 changed files with 46 additions and 64 deletions
|
@ -24,7 +24,7 @@ class FunctionalTestCaseMixin:
|
|||
|
||||
def setUp(self):
|
||||
self.loop = self.new_loop()
|
||||
asyncio._set_event_loop(None)
|
||||
asyncio.set_event_loop(None)
|
||||
|
||||
self.loop.set_exception_handler(self.loop_exception_handler)
|
||||
self.__unhandled_exceptions = []
|
||||
|
@ -39,7 +39,7 @@ class FunctionalTestCaseMixin:
|
|||
self.fail('unexpected calls to loop.call_exception_handler()')
|
||||
|
||||
finally:
|
||||
asyncio._set_event_loop(None)
|
||||
asyncio.set_event_loop(None)
|
||||
self.loop = None
|
||||
|
||||
def tcp_server(self, server_prog, *,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue