[issue23140] InvalidStateError on asyncio subprocess task cancelled

STINNER Victor report at bugs.python.org
Mon Jan 5 22:42:53 CET 2015


STINNER Victor added the comment:

Oh no. My comment was not published, it was probably an issue with my unstable Internet connection.

Here is a patch fixing the issue with an unit test.

There is another call to Future.set_result() in subprocess.py not protected by an if in connection_made(). I don't know if it should be patched too or not.

----------
keywords: +patch
Added file: http://bugs.python.org/file37606/asyncio_subprocess_cancel_wait.patch

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


More information about the Python-bugs-list mailing list