Skip to content

Commit 6687913

Browse files
add back get_running_loop
1 parent 04d9667 commit 6687913

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_asyncio/test_events.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2907,10 +2907,11 @@ def test_get_event_loop_returns_running_loop2(self):
29072907
asyncio.set_event_loop(None)
29082908
with self.assertRaisesRegex(RuntimeError, 'no current'):
29092909
asyncio.get_event_loop()
2910-
self.assertIs(asyncio._get_running_loop(), None)
29112910

29122911
async def func():
29132912
self.assertIs(asyncio.get_event_loop(), loop)
2913+
self.assertIs(asyncio.get_running_loop(), loop)
2914+
self.assertIs(asyncio._get_running_loop(), loop)
29142915

29152916
loop.run_until_complete(func())
29162917

0 commit comments

Comments
 (0)