From ab8fe22e5e4e282da8ea6f4e77f4c0a6616ec9c2 Mon Sep 17 00:00:00 2001 From: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Date: Sat, 22 Jan 2022 16:50:10 +0530 Subject: fix DeprecationWarning when running asyncio tests (GH-30486) --- Lib/test/test_asyncio/test_windows_events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_asyncio/test_windows_events.py b/Lib/test/test_asyncio/test_windows_events.py index f276cd2..6b4f65c 100644 --- a/Lib/test/test_asyncio/test_windows_events.py +++ b/Lib/test/test_asyncio/test_windows_events.py @@ -45,7 +45,7 @@ class ProactorLoopCtrlC(test_utils.TestCase): signal.raise_signal(signal.SIGINT) thread = threading.Thread(target=SIGINT_after_delay) - loop = asyncio.get_event_loop() + loop = asyncio.new_event_loop() try: # only start the loop once the event loop is running loop.call_soon(thread.start) -- cgit v0.12