summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-01-22 11:20:10 (GMT)
committerGitHub <noreply@github.com>2022-01-22 11:20:10 (GMT)
commitab8fe22e5e4e282da8ea6f4e77f4c0a6616ec9c2 (patch)
treeae4fd229a5ab2e3ec87fae53a671365eb97fd7cf /Lib/test/test_asyncio
parent5d735241168cefe00be177ef4152955c100177ae (diff)
downloadcpython-ab8fe22e5e4e282da8ea6f4e77f4c0a6616ec9c2.zip
cpython-ab8fe22e5e4e282da8ea6f4e77f4c0a6616ec9c2.tar.gz
cpython-ab8fe22e5e4e282da8ea6f4e77f4c0a6616ec9c2.tar.bz2
fix DeprecationWarning when running asyncio tests (GH-30486)
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_windows_events.py2
1 files changed, 1 insertions, 1 deletions
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)