]> 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:12 +0000 (06:12 -0800)
committerGitHub <noreply@github.com>
Tue, 19 Nov 2019 14:12:12 +0000 (06:12 -0800)
commit4ffc569b47bef9f95e443f3c56f7e7e32cb440c0
treee01a078d6984817ec5eea40b69334de939f1ebab
parent2b928d9bf75d82b86dc3b4fcbc243d36a7958f4c
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