Source: jinja2-time Version: 0.2.0-2 Severity: serious User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu focal
Hi Vincent, The jinja2-time source package currently fails to build from source in unstable: [...] 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>. Cheers, -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer https://www.debian.org/ slanga...@ubuntu.com vor...@debian.org
signature.asc
Description: PGP signature