Source: importmagic
Version: 0.1.7-7
Severity: serious
Tags: forky sid
User: [email protected]
Usertags: python3.14

Hi Maintainer

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

Regards
Graham


[1] https://ci.debian.net/packages/i/importmagic/testing/amd64/


 27s =================================== FAILURES
===================================
 27s ___________________________ test_index_file_with_all
___________________________
 27s
 27s     def test_index_file_with_all():
 27s         src = dedent('''
 27s             __all__ = ['one']
 27s
 27s             one = 1
 27s             two = 2
 27s             three = 3
 27s             ''')
 27s         tree = SymbolIndex()
 27s         with tree.enter('test') as subtree:
 27s >           subtree.index_source('test.py', src)
 27s
 27s /usr/lib/python3/dist-packages/importmagic/index_test.py:64:
 27s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
 27s /usr/lib/python3/dist-packages/importmagic/index.py:133: in index_source
 27s     visitor.visit(st)
 27s /usr/lib/python3.14/ast.py:506: in visit
 27s     return visitor(node)
 27s            ^^^^^^^^^^^^^
 27s /usr/lib/python3.14/ast.py:514: in generic_visit
 27s     self.visit(item)
 27s /usr/lib/python3.14/ast.py:506: in visit
 27s     return visitor(node)
 27s            ^^^^^^^^^^^^^
 27s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
 27s
 27s self = <importmagic.index.SymbolVisitor object at 0x7f5a13eaad70>
 27s node = Assign(targets=[Name(id='__all__', ctx=Store())],
value=List(elts=[Constant(value='one', kind=None)], ctx=Load()),
type_comment=None)
 27s
 27s     def visit_Assign(self, node):
 27s         # TODO: Handle __all__
 27s         is_name = lambda n: isinstance(n, ast.Name)
 27s         for name in filter(is_name, node.targets):
 27s             if name.id == '__all__' and isinstance(node.value, ast.List):
 27s                 for subnode in node.value.elts:
 27s >                   if isinstance(subnode, ast.Str):
 27s                                            ^^^^^^^
 27s E                   AttributeError: module 'ast' has no attribute 'Str'
 27s
 27s /usr/lib/python3/dist-packages/importmagic/index.py:407: AttributeError

Reply via email to