aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_asyncio/functional.py
diff options
context:
space:
mode:
authorKumar Aditya <kumaraditya@python.org>2025-04-12 12:03:52 +0530
committerGitHub <noreply@github.com>2025-04-12 12:03:52 +0530
commit05d27a84f4a85d777239e95e6d9b6dae8b32c538 (patch)
tree7f60ed0d52046320498cfef2bfb5ef2b9fd382c0 /Lib/test/test_asyncio/functional.py
parente6ef47ac229b5c4a62b9c907e4232e350db77ce3 (diff)
downloadcpython-05d27a84f4a85d777239e95e6d9b6dae8b32c538.tar.gz
cpython-05d27a84f4a85d777239e95e6d9b6dae8b32c538.zip
gh-130322: drop deprecation of `asyncio.set_event_loop` (#132349)
Diffstat (limited to 'Lib/test/test_asyncio/functional.py')
-rw-r--r--Lib/test/test_asyncio/functional.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/functional.py b/Lib/test/test_asyncio/functional.py
index 555394b915d..96dc9ab4401 100644
--- a/Lib/test/test_asyncio/functional.py
+++ b/Lib/test/test_asyncio/functional.py
@@ -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, *,