[issue23140] InvalidStateError on asyncio subprocess task cancelled

STINNER Victor report at bugs.python.org
Tue Jan 6 01:01:38 CET 2015


STINNER Victor added the comment:

> I'm okay with leaving the other unguarded set_result() call unchanged, but I'm also okay with putting "if not self.waiter.cancelled():" around it.

While playing with asyncio to try to inject errors on this code path, I found even more severe issues: see the issue #23173 which proposes to fix them.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23140>
_______________________________________


More information about the Python-bugs-list mailing list