Skip to content

Commit ab8fe22

Browse files
fix DeprecationWarning when running asyncio tests (GH-30486)
1 parent 5d73524 commit ab8fe22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_asyncio/test_windows_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def SIGINT_after_delay():
4545
signal.raise_signal(signal.SIGINT)
4646

4747
thread = threading.Thread(target=SIGINT_after_delay)
48-
loop = asyncio.get_event_loop()
48+
loop = asyncio.new_event_loop()
4949
try:
5050
# only start the loop once the event loop is running
5151
loop.call_soon(thread.start)

0 commit comments

Comments
 (0)