diff options
author | Kumar Aditya <kumaraditya@python.org> | 2024-12-18 11:35:29 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-18 11:35:29 +0530 |
commit | 5892853fb71acd6530e1e241a9a4bcf71a61fb21 (patch) | |
tree | bd17e169dbcf0d0e290b5208886da38baae675b1 /Lib/test/test_asyncio/test_context.py | |
parent | 559b0e7013f9cbf42a12fe9c86048d5cbb2f6f22 (diff) | |
download | cpython-5892853fb71acd6530e1e241a9a4bcf71a61fb21.tar.gz cpython-5892853fb71acd6530e1e241a9a4bcf71a61fb21.zip |
gh-127949: deprecate `asyncio.set_event_loop_policy` (#128024)
First step towards deprecating the asyncio policy system.
This deprecates `asyncio.set_event_loop_policy` and will be removed in Python 3.16.
Diffstat (limited to 'Lib/test/test_asyncio/test_context.py')
-rw-r--r-- | Lib/test/test_asyncio/test_context.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_context.py b/Lib/test/test_asyncio/test_context.py index 6b80721873d..ad394f44e7e 100644 --- a/Lib/test/test_asyncio/test_context.py +++ b/Lib/test/test_asyncio/test_context.py @@ -4,7 +4,7 @@ import unittest def tearDownModule(): - asyncio.set_event_loop_policy(None) + asyncio._set_event_loop_policy(None) @unittest.skipUnless(decimal.HAVE_CONTEXTVAR, "decimal is built with a thread-local context") |