]> granicus.if.org Git - python/commit
Issue #22601: run_forever() now consumes BaseException of the temporary task
authorVictor Stinner <victor.stinner@gmail.com>
Sat, 11 Oct 2014 12:30:18 +0000 (14:30 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Sat, 11 Oct 2014 12:30:18 +0000 (14:30 +0200)
commitc8bd53f81512acf805708abca31f5491c13ae185
tree01813c7bac8fb724a4435ff4de774ba41e6cb6c0
parent682124ccc3c7e07006ca99346f749689a5229459
Issue #22601: run_forever() now consumes BaseException of the temporary task

If the coroutine raised a BaseException, consume the exception to not log a
warning. The caller doesn't have access to the local task.
Lib/asyncio/base_events.py
Lib/test/test_asyncio/test_base_events.py