Bug#1088761: optlang: autopkgtest failure with Python 3.13

Graham Inggs ginggs at debian.org
Sat Nov 30 17:24:15 GMT 2024


Source: optlang
Version: 1.8.2-2
Severity: serious
User: debian-python at lists.debian.org
Usertags: python3.13

Hi Maintainer

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

Regards
Graham


[1] https://ci.debian.net/packages/o/optlang/testing/amd64/


88s =================================== FAILURES
===================================
88s __________________________ ContainerTestCase.test_dir
__________________________
88s
88s self = <tests.test_container.ContainerTestCase testMethod=test_dir>
88s
88s def test_dir(self):
88s var = Variable('blub')
88s self.container.append(var)
88s print(dir(self.container))
88s > self.assertEqual(dir(self.container),
88s ['__contains__', '__delitem__', '__dict__', '__dir__', '__doc__',
'__getattr__', '__getitem__',
88s '__getstate__', '__init__', '__iter__', '__len__', '__module__',
'__setitem__',
88s '__setstate__', '__weakref__', '_check_for_name_attribute',
'_reindex', 'append', 'blub',
88s 'clear', 'extend', 'fromkeys', 'get', 'has_key', 'items',
'iteritems', 'iterkeys',
88s 'itervalues', 'keys', 'update_key', 'values'])
88s E AssertionError: Lists differ: ['__c[59 chars],
'__firstlineno__', '__getattr__', '__getitem[323 chars]ues'] !=
['__c[59 chars], '__getattr__', '__getitem__', '__getstate__'[279
chars]ues']
88s E
88s E First differing element 5:
88s E '__firstlineno__'
88s E '__getattr__'
88s E
88s E First list contains 2 additional elements.
88s E First extra element 31:
88s E 'update_key'
88s E
88s E ['__contains__',
88s E '__delitem__',
88s E '__dict__',
88s E '__dir__',
88s E '__doc__',
88s E - '__firstlineno__',
88s E '__getattr__',
88s E '__getitem__',
88s E '__getstate__',
88s E '__init__',
88s E '__iter__',
88s E '__len__',
88s E '__module__',
88s E '__setitem__',
88s E '__setstate__',
88s E - '__static_attributes__',
88s E '__weakref__',
88s E '_check_for_name_attribute',
88s E '_reindex',
88s E 'append',
88s E 'blub',
88s E 'clear',
88s E 'extend',
88s E 'fromkeys',
88s E 'get',
88s E 'has_key',
88s E 'items',
88s E 'iteritems',
88s E 'iterkeys',
88s E 'itervalues',
88s E 'keys',
88s E 'update_key',
88s E 'values']
88s
88s tests/test_container.py:50: AssertionError



More information about the debian-science-maintainers mailing list