[Python-modules-team] Bug#973014: genshi's autopkg tests are failing with python3.9

Matthias Klose doko at debian.org
Tue Oct 27 12:07:38 GMT 2020


Package: src:genshi
Version: 0.7.3-2
Severity: serious
Tags: sid bullseye
User: debian-python at lists.debian.org
Usertags: python3.9


ERROR: test_extract_i18n_msg_with_other_directives_nested
(genshi.filters.tests.i18n.MsgDirectiveTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/tmp/autopkgtest-lxc.zz1p467h/downtmp/build.oV9/src/build/lib/genshi/filters/tests/i18n.py",
line 792, in test_extract_i18n_msg_with_other_directives_nested
    messages = list(translator.extract(tmpl.stream))
  File
"/tmp/autopkgtest-lxc.zz1p467h/downtmp/build.oV9/src/build/lib/genshi/template/base.py",
line 454, in stream
    self._prepare_self()
  File
"/tmp/autopkgtest-lxc.zz1p467h/downtmp/build.oV9/src/build/lib/genshi/template/base.py",
line 473, in _prepare_self
    self._stream = list(self._prepare(self._stream, inlined))
  File
"/tmp/autopkgtest-lxc.zz1p467h/downtmp/build.oV9/src/build/lib/genshi/template/base.py",
line 490, in _prepare
    directive, substream = cls.attach(self, substream, value,
  File
"/tmp/autopkgtest-lxc.zz1p467h/downtmp/build.oV9/src/build/lib/genshi/template/directives.py",
line 718, in attach
    return super(WithDirective, cls).attach(template, stream, value,
  File
"/tmp/autopkgtest-lxc.zz1p467h/downtmp/build.oV9/src/build/lib/genshi/template/directives.py",
line 82, in attach
    return cls(value, template, namespaces, *pos[1:]), stream
  File
"/tmp/autopkgtest-lxc.zz1p467h/downtmp/build.oV9/src/build/lib/genshi/template/directives.py",
line 706, in __init__
    Expression(node.value, template.filepath,
  File
"/tmp/autopkgtest-lxc.zz1p467h/downtmp/build.oV9/src/build/lib/genshi/template/eval.py",
line 93, in __init__
    self.code = _compile(node, self.source, mode=self.mode,
  File
"/tmp/autopkgtest-lxc.zz1p467h/downtmp/build.oV9/src/build/lib/genshi/template/eval.py",
line 451, in _compile
    tree = xform().visit(node)
  File
"/tmp/autopkgtest-lxc.zz1p467h/downtmp/build.oV9/src/build/lib/genshi/template/astutil.py",
line 798, in visit
    return visitor(node)
  File
"/tmp/autopkgtest-lxc.zz1p467h/downtmp/build.oV9/src/build/lib/genshi/template/astutil.py",
line 820, in _clone
    value = self.visit(value)
  File
"/tmp/autopkgtest-lxc.zz1p467h/downtmp/build.oV9/src/build/lib/genshi/template/astutil.py",
line 798, in visit
    return visitor(node)
  File
"/tmp/autopkgtest-lxc.zz1p467h/downtmp/build.oV9/src/build/lib/genshi/template/astutil.py",
line 816, in _clone
    value = [self.visit(x) for x in value]
  File
"/tmp/autopkgtest-lxc.zz1p467h/downtmp/build.oV9/src/build/lib/genshi/template/astutil.py",
line 816, in <listcomp>
    value = [self.visit(x) for x in value]
  File
"/tmp/autopkgtest-lxc.zz1p467h/downtmp/build.oV9/src/build/lib/genshi/template/astutil.py",
line 798, in visit
    return visitor(node)
  File
"/tmp/autopkgtest-lxc.zz1p467h/downtmp/build.oV9/src/build/lib/genshi/template/eval.py",
line 640, in visit_Subscript
    not isinstance(node.slice, _ast.Index):
AttributeError: module '_ast' has no attribute 'Index'



More information about the Python-modules-team mailing list