[Debian-med-packaging] Bug#1121007: nibabel: FTBFS with Python 3.14
Étienne Mollier
emollier at debian.org
Thu Dec 4 20:12:08 GMT 2025
Hi Graham
> 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.
I found this comment in argparse documentation[1] which seems to
explain the test failure:
>> Changed in version 3.14: The default prog value now reflects
>> how __main__ was actually executed, rather than always being
>> os.path.basename(sys.argv[0]).
I think I can wrap up quickly a workaround by setting the prog
variable by hand, using the legacy method. That should do it.
I'm not sure how come this didn't pop up upstream yet.
[1]: https://docs.python.org/3.14/library/argparse.html
Have a nice day, :)
--
.''`. Étienne Mollier <emollier at debian.org>
: :' : pgp: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
`. `' sent from /dev/pts/4, please excuse my verbosity
`- on air: Kaipa - The Fleeting Existence of Time
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20251204/72d1f4d4/attachment-0001.sig>
More information about the Debian-med-packaging
mailing list