[3.12] gh-110378: Close invalid generators in contextmanager and asynccontextmanager (GH-110499) (#110588)
contextmanager and asynccontextmanager context managers now close an invalid underlying generator object that yields more then one value. (cherry picked from commit 96fed66a65097eac2dc528ce29c9ba676bb07689) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
M
Miss Islington (bot) committed
2fc80814bf55445fb2cc56b25ec54d8e308e3408
Parent: 3688672
Committed by GitHub <noreply@github.com>
on 10/10/2023, 9:12:28 AM