]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35409: Ignore GeneratorExit in async_gen_athrow_throw (GH-14755)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 19 Nov 2019 14:12:06 +0000 (06:12 -0800)
committerGitHub <noreply@github.com>
Tue, 19 Nov 2019 14:12:06 +0000 (06:12 -0800)
commit6c3b471c8c0bfd49c664d8ee7e95da3710fd6069
tree4efdf0854da2796f9c5f25b8ac41807f1ae0d2cc
parentc749326d24bf407a18350f9753e75aa5564483c2
bpo-35409: Ignore GeneratorExit in async_gen_athrow_throw (GH-14755)

Ignore `GeneratorExit` exceptions when throwing an exception into the `aclose` coroutine of an asynchronous generator.

https://bugs.python.org/issue35409
(cherry picked from commit 8e0de2a4808d7c2f4adedabff89ee64e0338790a)

Co-authored-by: Vincent Michel <vxgmichel@gmail.com>
Lib/test/test_asyncgen.py
Misc/NEWS.d/next/Core and Builtins/2019-07-13-18-01-13.bpo-35409.ozbcsR.rst [new file with mode: 0644]
Objects/genobject.c