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 <[email protected]>
 : :' :  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

Attachment: signature.asc
Description: PGP signature

Reply via email to