Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Edit: See#117536 (comment) and#117536 (comment) for simpler reproducers --@encukou
Bug description:
The following code is extracted from jinja2 tests, as I was debuggingpallets/jinja#1900 -- it uses no jinja:
asyncdefauto_aiter(iterable):foriteminiterable:yielditemasyncdefcustomfilter(iterable):items= []asyncforiteminauto_aiter(iterable):items.append(item)iflen(items)==3:breakreturn"".join(items)importasyncioprint(asyncio.run(customfilter("yyyNNN")))
$ python3.12 asyncrepro.py yyy$ python3.13 asyncrepro.py yyysys:1: RuntimeWarning: coroutine method'aclose' of'auto_aiter' was never awaitedRuntimeWarning: Enable tracemalloc to get the object allocation traceback$ python3.13 -X tracemalloc asyncrepro.py yyysys:1: RuntimeWarning: coroutine method'aclose' of'auto_aiter' was never awaitedObject allocated at (most recent call last): File".../asyncrepro.py", lineno 10break
This seems to be related to#89091
I am not sure if this is a regression in Python or a bug in Jinja tests, but considering Jinja folks closed my issue, I decided to report it here instead.
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Linked PRs
Metadata
Metadata
Assignees
Labels
Projects
Status
Done
Status
Done