[New-bugs-announce] [issue39191] Coroutine is awaited despite an exception in run_until_complete()

Kaveshnikov Denis report at bugs.python.org
Thu Jan 2 08:34:18 EST 2020


New submission from Kaveshnikov Denis <kaveshnikov.denis at hotmail.com>:

Hi, I found that if to call run_until_complete() in the task while the event loop will be running, a coroutine sent to run_until_complete() will be performed despite the exception raised from run_until_complete().
It seems to me, it would be better to cancel such a coroutine or just do nothing with it.

----------
components: asyncio
files: test_event_loop.py
messages: 359196
nosy: asvetlov, dkaveshnikov, yselivanov
priority: normal
severity: normal
status: open
title: Coroutine is awaited despite an exception in run_until_complete()
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file48819/test_event_loop.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39191>
_______________________________________


More information about the New-bugs-announce mailing list