aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_asyncio/functional.py
diff options
context:
space:
mode:
authorKumar Aditya <kumaraditya@python.org>2024-12-24 19:24:28 +0530
committerGitHub <noreply@github.com>2024-12-24 19:24:28 +0530
commit9fce90682553e2cfe93e98e2ae5948bf9c7c4456 (patch)
tree68349cd7bec642cadc1bb7436d1f0c54ccb91366 /Lib/test/test_asyncio/functional.py
parent3ddd70ceaaf67b111ee4251817e150396d6d10a9 (diff)
downloadcpython-9fce90682553e2cfe93e98e2ae5948bf9c7c4456.tar.gz
cpython-9fce90682553e2cfe93e98e2ae5948bf9c7c4456.zip
gh-127949: deprecate `asyncio.set_event_loop` (#128218)
Deprecate `asyncio.set_event_loop` to be removed in Python 3.16.
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 d19c7a612cc..2934325b6df 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, *,