Control: reassign 1026705 src:python-kajiki 0.9.1-1
Control: affects 1026705 src:python-pecan

* Lucas Nussbaum <lu...@debian.org> [2022-12-20 18:42]:
=================================== FAILURES ===================================
___________________________ TestEngines.test_kajiki ____________________________

self = <pecan.tests.test_base.TestEngines testMethod=test_kajiki>

    @unittest.skipIf('kajiki' not in builtin_renderers, 'Kajiki not installed')
    def test_kajiki(self):

        class RootController(object):
            @expose('kajiki:kajiki.html')
            def index(self, name='Jonathan'):
                return dict(name=name)

        app = TestApp(
            Pecan(RootController(), template_path=self.template_path)
        )
>       r = app.get('/')

pecan/tests/test_base.py:1859:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/webtest/app.py:324: in get
    return self.do_request(req, status=status,
/usr/lib/python3/dist-packages/webtest/app.py:620: in do_request
    res = req.get_response(app, catch_exc_info=True)
/usr/lib/python3/dist-packages/webob/request.py:1309: in send
    status, headers, app_iter, exc_info = self.call_application(
/usr/lib/python3/dist-packages/webob/request.py:1278: in call_application
    app_iter = application(self.environ, start_response)
/usr/lib/python3/dist-packages/webtest/lint.py:196: in lint_app
    iterator = application(environ, start_response_wrapper)
pecan/core.py:852: in __call__
    return super(Pecan, self).__call__(environ, start_response)
pecan/core.py:693: in __call__
    self.invoke_controller(controller, args, kwargs, state)
pecan/core.py:614: in invoke_controller
    result = self.render(template, result)
pecan/core.py:425: in render
    return renderer.render(template, namespace)
pecan/templating.py:131: in render
    Template = self.loader.import_(template_path)
/usr/lib/python3/dist-packages/kajiki/loader.py:83: in import_
    return super().import_(name, *args, **kwargs)
/usr/lib/python3/dist-packages/kajiki/loader.py:17: in import_
    mod = self._load(name, *args, **kwargs)
/usr/lib/python3/dist-packages/kajiki/loader.py:113: in _load
    return self.extension_map[ext](
/usr/lib/python3/dist-packages/kajiki/loader.py:66: in <lambda>
    html=lambda *a, **kw: XMLTemplate(mode="html", *a, **kw),
/usr/lib/python3/dist-packages/kajiki/xml_template.py:62: in XMLTemplate
    t = template.from_ir(ir_, base_globals=base_globals)
/usr/lib/python3/dist-packages/kajiki/template.py:336: in from_ir
    tpl.annotate_lnotab(py_linenos)
/usr/lib/python3/dist-packages/kajiki/template.py:267: in annotate_lnotab
    meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
/usr/lib/python3/dist-packages/kajiki/template.py:397: in annotate_lnotab
    new_code = patch_code_file_lines(code, filename, new_firstlineno, 
new_lnotab)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

code = <code object __main__ at 0x3268e00, file "<string>", line 2>
filename = '/<<PKGBUILDDIR>>/pecan/tests/templates/kajiki.html'
firstlineno = 0
lnotab = b'\x00\x00\x06\x01\x08\x03B\x00L\x00B\x00\x08\x04B\x00L\x00B\x00'

    def patch_code_file_lines(code, filename, firstlineno, lnotab):
        code_args = (
            code.co_argcount,
            code.co_posonlyargcount if version_info >= (3, 8) else "REMOVE",
            code.co_kwonlyargcount,
            code.co_nlocals,
            code.co_stacksize,
            code.co_flags,
            code.co_code,
            code.co_consts,
            code.co_names,
            code.co_varnames,
            filename,
            code.co_name,
            code.co_qualname if version_info >= (3, 11) else "REMOVE",
            firstlineno,
            lnotab,
>           code.co_endlinetable if version_info >= (3, 11) else "REMOVE",
            code.co_columntable if version_info >= (3, 11) else "REMOVE",
            code.co_exceptiontable if version_info >= (3, 11) else "REMOVE",
            code.co_freevars,
            code.co_cellvars,
        )
E       AttributeError: 'code' object has no attribute 'co_endlinetable'

This bug comes from python3-kajiki and is fixed in the latest
upstream release 0.9.2


Cheers
Timo

--
⢀⣴⠾⠻⢶⣦⠀   ╭────────────────────────────────────────────────────╮
⣾⠁⢠⠒⠀⣿⡁   │ Timo Röhling                                       │
⢿⡄⠘⠷⠚⠋⠀   │ 9B03 EBB9 8300 DF97 C2B1  23BF CC8C 6BDD 1403 F4CA │
⠈⠳⣄⠀⠀⠀⠀   ╰────────────────────────────────────────────────────╯

Attachment: signature.asc
Description: PGP signature

Reply via email to