Source: jinja2
Version: 3.1.3-1
Severity: serious
User: debian-pyt...@lists.debian.org
Usertags: python3.13

Hi Maintainer

The autopkgtests of this package fail with Python 3.13 [1].  I've
copied what I hope is the relevant part of the log below.

Regards
Graham


[1] https://ci.debian.net/packages/j/jinja2/testing/amd64/


51s =================================== FAILURES
===================================
51s ______________________ TestAsyncForLoop.test_loop_errors
_______________________
51s
51s cls = <class '_pytest.runner.CallInfo'>
51s func = <function call_and_report.<locals>.<lambda> at 0x7fcfbba3d6c0>
51s when = 'call'
51s reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
51s
51s @classmethod
51s def from_call(
51s cls,
51s func: Callable[[], TResult],
51s when: Literal["collect", "setup", "call", "teardown"],
51s reraise: type[BaseException] | tuple[type[BaseException], ...] |
None = None,
51s ) -> CallInfo[TResult]:
51s """Call func, wrapping the result in a CallInfo.
51s
51s :param func:
51s The function to call. Called without arguments.
51s :type func: Callable[[], _pytest.runner.TResult]
51s :param when:
51s The phase in which the function is called.
51s :param reraise:
51s Exception or exceptions that shall propagate if raised by the
51s function, instead of being wrapped in the CallInfo.
51s """
51s excinfo = None
51s start = timing.time()
51s precise_start = timing.perf_counter()
51s try:
51s > result: TResult | None = func()
51s
51s /usr/lib/python3/dist-packages/_pytest/runner.py:341:
51s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
51s /usr/lib/python3/dist-packages/_pytest/runner.py:242: in <lambda>
51s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
51s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__
51s return self._hookexec(self.name, self._hookimpls.copy(), kwargs,
firstresult)
51s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec
51s return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
51s /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in
pytest_runtest_call
51s yield from thread_exception_runtest_hook()
51s /usr/lib/python3/dist-packages/_pytest/threadexception.py:68: in
thread_exception_runtest_hook
51s yield
51s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95:
in pytest_runtest_call
51s yield from unraisable_exception_runtest_hook()
51s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
51s
51s def unraisable_exception_runtest_hook() -> Generator[None]:
51s with catch_unraisable_exception() as cm:
51s try:
51s yield
51s finally:
51s if cm.unraisable:
51s if cm.unraisable.err_msg is not None:
51s err_msg = cm.unraisable.err_msg
51s else:
51s err_msg = "Exception ignored in"
51s msg = f"{err_msg}: {cm.unraisable.object!r}\n\n"
51s msg += "".join(
51s traceback.format_exception(
51s cm.unraisable.exc_type,
51s cm.unraisable.exc_value,
51s cm.unraisable.exc_traceback,
51s )
51s )
51s > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
51s E pytest.PytestUnraisableExceptionWarning: Exception ignored in:
<async_generator object auto_aiter at 0x7fcfbba90790>
51s E
51s E Traceback (most recent call last):
51s E File "/usr/lib/python3/dist-packages/_pytest/python_api.py",
line 968, in raises
51s E func(*args[1:], **kwargs)
51s E ~~~~^^^^^^^^^^^^^^^^^^^^^
51s E File "/usr/lib/python3/dist-packages/jinja2/environment.py",
line 1291, in render
51s E return loop.run_until_complete(self.render_async(*args, **kwargs))
51s E ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51s E File "/usr/lib/python3.13/asyncio/base_events.py", line 720, in
run_until_complete
51s E return future.result()
51s E ~~~~~~~~~~~~~^^
51s E File "/usr/lib/python3/dist-packages/jinja2/environment.py",
line 1324, in render_async
51s E return self.environment.handle_exception()
51s E ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
51s E File "/usr/lib/python3/dist-packages/jinja2/environment.py",
line 936, in handle_exception
51s E raise rewrite_traceback_stack(source=source)
51s E File "<template>", line 1, in top-level template code
51s E File "<template>", line 2, in template
51s E File "/usr/lib/python3/dist-packages/jinja2/environment.py",
line 485, in getattr
51s E return getattr(obj, attribute)
51s E jinja2.exceptions.UndefinedError: 'loop' is undefined
51s E
51s E During handling of the above exception, another exception occurred:
51s E
51s E Traceback (most recent call last):
51s E File "/usr/lib/python3.13/asyncio/base_events.py", line 745, in close
51s E self._ready.clear()
51s E ~~~~~~~~~~~~~~~~~^^
51s E RuntimeWarning: coroutine method 'aclose' of 'auto_aiter' was
never awaited
51s
51s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:85:
PytestUnraisableExceptionWarning

Reply via email to