aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_asyncio/utils.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/utils.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/utils.py')
-rw-r--r--Lib/test/test_asyncio/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/utils.py b/Lib/test/test_asyncio/utils.py
index c61105712d3..ad2bde490c8 100644
--- a/Lib/test/test_asyncio/utils.py
+++ b/Lib/test/test_asyncio/utils.py
@@ -540,7 +540,7 @@ class TestCase(unittest.TestCase):
if loop is None:
raise AssertionError('loop is None')
# ensure that the event loop is passed explicitly in asyncio
- events._set_event_loop(None)
+ events.set_event_loop(None)
if cleanup:
self.addCleanup(self.close_loop, loop)
@@ -553,7 +553,7 @@ class TestCase(unittest.TestCase):
self._thread_cleanup = threading_helper.threading_setup()
def tearDown(self):
- events._set_event_loop(None)
+ events.set_event_loop(None)
# Detect CPython bug #23353: ensure that yield/yield-from is not used
# in an except block of a generator