[Debian-med-packaging] Bug#1088757: nibabel: autopkgtest failure with Python 3.13

Graham Inggs ginggs at debian.org
Sat Nov 30 17:10:16 GMT 2024


Source: nibabel
Version: 5.2.1-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/n/nibabel/testing/amd64/


165s =================================== FAILURES
===================================
165s _____________________ TestNibabelDeprecator.test_dep_func
______________________
165s
165s self = <nibabel.tests.test_deprecated.TestNibabelDeprecator
object at 0x7f34a7059950>
165s
165s def test_dep_func(self):
165s # Test function deprecation
165s dec = self.dep_func
165s func = dec('foo')(func_no_doc)
165s with pytest.deprecated_call():
165s assert func() is None
165s assert func.__doc__ == 'foo\n'
165s func = dec('foo')(func_doc)
165s with pytest.deprecated_call() as w:
165s assert func(1) is None
165s assert len(w) == 1
165s assert func.__doc__ == 'A docstring\n\nfoo\n'
165s func = dec('foo')(func_doc_long)
165s with pytest.deprecated_call() as w:
165s assert func(1, 2) is None
165s assert len(w) == 1
165s > assert (
165s func.__doc__
165s == f'A docstring\n \n foo\n \n{indent(TESTSETUP, " ", lambda x: True)}'
165s f' Some text\n{indent(TESTCLEANUP, " ", lambda x: True)}'
165s )
165s E AssertionError: assert 'A docstring\...ne, None)\n\n' == 'A
docstring\... None)\n \n'
165s E
165s E A docstring
165s E -
165s E - foo
165s E -
165s E -
165s E - ...
165s E
165s E ...Full output truncated (44 lines hidden), use '-vv' to show
165s
165s nibabel/tests/test_deprecator.py:95: AssertionError



More information about the Debian-med-packaging mailing list