Skip to content

Commit 9e3f49c

Browse files
kumaraditya303cjw296
authored andcommitted
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. Backports: 5892853fb71acd6530e1e241a9a4bcf71a61fb21 Signed-off-by: Chris Withers <[email protected]>
1 parent cc4b0ec commit 9e3f49c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mock/tests/testasync.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def run(main):
2525

2626

2727
def tearDownModule():
28-
asyncio.set_event_loop_policy(None)
28+
asyncio._set_event_loop_policy(None)
2929

3030

3131
class AsyncClass:

0 commit comments

Comments
 (0)