Traceback (most recent call last):
File "/home/graingert/projects/cpython/demo.py", line 16, in <module>
next(gen, None)
File "/usr/lib/python3.11/contextlib.py", line 222, in __aexit__
await self.gen.athrow(typ, value, traceback)
File "/home/graingert/projects/cpython/demo.py", line 7, in f
yield
File "/home/graingert/projects/cpython/demo.py", line 12, in amain
async with f(): 1/0
~^~
ZeroDivisionError: division by zero
I think the test cases and code for contextlib.contextmanager and contextlib.ExitStack should be automatically generated from the test cases and code for contextlib.asynccontextmanager and contextlib.AsyncExitStack
graingert commentedAug 11, 2022
•
edited by bedevere-bot
Originally posted by @graingert in #92118 (comment)
Linked PRs
The text was updated successfully, but these errors were encountered: