Skip to content

Commit

Permalink
gh-127949: deprecate asyncio.set_event_loop_policy (#128024)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kumaraditya303 authored and cjw296 committed Mar 3, 2025
1 parent cc4b0ec commit 9e3f49c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mock/tests/testasync.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def run(main):


def tearDownModule():
asyncio.set_event_loop_policy(None)
asyncio._set_event_loop_policy(None)


class AsyncClass:
Expand Down

0 comments on commit 9e3f49c

Please sign in to comment.