Skip to content

Commit 8aed0b8

Browse files
finish it
1 parent 0d7ace8 commit 8aed0b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/asyncio/base_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,8 @@ def _run_forever_cleanup(self):
671671

672672
def run_forever(self):
673673
"""Run until stop() is called."""
674+
self._run_forever_setup()
674675
try:
675-
self._run_forever_setup()
676676
while True:
677677
self._run_once()
678678
if self._stopping:

Lib/test/test_asyncio/test_base_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2005,7 +2005,7 @@ async def stop_loop_coro(loop):
20052005

20062006

20072007
class RunningLoopTests(unittest.TestCase):
2008-
@unittest.skip("skip")
2008+
20092009
def test_running_loop_within_a_loop(self):
20102010
async def runner(loop):
20112011
loop.run_forever()

0 commit comments

Comments
 (0)