Here's the build log failure from the debian bug:
[...]
tests/test_now.py ......FFF [100%]
=================================== FAILURES ===================================
________________________________ test_add_time _________________________________
environment = <jinja2.environment.Environment object at 0x7efefa14c810>
def test_add_time(environment):
environment.datetime_format = '%a, %d %b %Y %H:%M:%S'
template = environment.from_string(
"{% now 'utc' + 'hours=2,seconds=30' %}"
)
> assert template.render() == "Thu, 10 Dec 2015 01:33:31"
tests/test_now.py:61:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/jinja2/asyncsupport.py:76: in render
return original_render(self, *args, **kwargs)
/usr/lib/python3/dist-packages/jinja2/environment.py:1008: in render
return self.environment.handle_exception(exc_info, True)
/usr/lib/python3/dist-packages/jinja2/environment.py:780: in handle_exception
reraise(exc_type, exc_value, tb)
/usr/lib/python3/dist-packages/jinja2/_compat.py:37: in reraise
raise value.with_traceback(tb)
<template>:1: in top-level template code
???
jinja2_time/jinja2_time.py:26: in _datetime
d = d.replace(**replace_params)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Arrow [2015-12-09T23:33:01+00:00]>
kwargs = {'hours': 2.0, 'seconds': 30.0}, absolute_kwargs = {}, key = 'hours'
value = 2.0
def replace(self, **kwargs):
""" Returns a new :class:`Arrow <arrow.arrow.Arrow>` object with
attributes updated
according to inputs.
Use property names to set their value absolutely::
>>> import arrow
>>> arw = arrow.utcnow()
>>> arw
<Arrow [2013-05-11T22:27:34.787885+00:00]>
>>> arw.replace(year=2014, month=6)
<Arrow [2014-06-11T22:27:34.787885+00:00]>
You can also replace the timezone without conversion, using a
:ref:`timezone expression <tz-expr>`::
>>> arw.replace(tzinfo=tz.tzlocal())
<Arrow [2013-05-11T22:27:34.787885-07:00]>
"""
absolute_kwargs = {}
for key, value in kwargs.items():
if key in self._ATTRS:
absolute_kwargs[key] = value
elif key in ["week", "quarter"]:
raise AttributeError("setting absolute {} is not
supported".format(key))
elif key != "tzinfo":
> raise AttributeError('unknown attribute: "{}"'.format(key))
E AttributeError: unknown attribute: "hours"
/usr/lib/python3/dist-packages/arrow/arrow.py:603: AttributeError
[...]
This failure was reproduced in Ubuntu focal, and you can find a full build
log at
<https://launchpad.net/ubuntu/+source/jinja2-time/0.2.0-2ubuntu1/+build/18016377>.
** Changed in: jinja2-time (Ubuntu)
Status: New => Triaged
** Changed in: jinja2-time (Ubuntu)
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1885305
Title:
jinja2-time: FTBFS in unstable
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/jinja2-time/+bug/1885305/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs