Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1270799 > unrolled thread

Bug#1121007: nibabel: FTBFS with Python 3.14

Started byGraham Inggs <ginggs@debian.org>
First post2025-11-19 14:50 +0100
Last post2025-11-19 14:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#1121007: nibabel: FTBFS with Python 3.14 Graham Inggs <ginggs@debian.org> - 2025-11-19 14:50 +0100

#1270799 — Bug#1121007: nibabel: FTBFS with Python 3.14

FromGraham Inggs <ginggs@debian.org>
Date2025-11-19 14:50 +0100
SubjectBug#1121007: nibabel: FTBFS with Python 3.14
Message-ID<LSQJj-e8KA-3@gated-at.bofh.it>
Source: nibabel
Version: 5.3.2-3
Severity: important
Tags: ftbfs
User: debian-python@lists.debian.org
Usertags: python3.14

Hi Maintainer

nibabel will FTBFS once Python 3.14 is added as a supported version in Debian.
I've copied what I hope is the relevant part of the log below, seen in Ubuntu,

TestDeprecatorMaker.test_deprecator_maker has already been fixed upstream [1].

test_entrypoint is failing because the captured output 'usage:
python3.14 -m pytest' does not match the expected output 'usage:
nib-roi', but only when tested with python3.14, yet the --help text is
correct.  It is not yet clear to me whether this would be a bug in
nibabel or elsewhere.

Regards
Graham


[1] https://github.com/nipy/nibabel/commit/bc216da7c35267f18bf3da4ae3122d56052cc168


__________________ TestDeprecatorMaker.test_deprecator_maker ___________________

self = <nibabel.tests.test_deprecator.TestDeprecatorMaker object at
0x76384d582d50>

    def test_deprecator_maker(self):
>       dec = self.dep_maker(warn_class=UserWarning)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       TypeError: Deprecator.__init__() got multiple values for
argument 'warn_class'

nibabel/tests/test_deprecator.py:167: TypeError

_______________________________ test_entrypoint ________________________________

capsys = <_pytest.capture.CaptureFixture object at 0x76384b117230>

    def test_entrypoint(capsys):
        # Check that we handle missing args as expected
        with mock.patch('sys.argv', ['nib-roi', '--help']):
            with pytest.raises(SystemExit):
                main()
        captured = capsys.readouterr()
>       assert captured.out.startswith('usage: nib-roi')
E       assert False
E        +  where False = <built-in method startswith of str object at
0x35bbc9f0>('usage: nib-roi')
E        +    where <built-in method startswith of str object at
0x35bbc9f0> = "usage: python3.14 -m pytest [-h] [--version] [-i
I1:I2[:-1]] [-j J1:J2[:-1]]\n

[toc] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web