#1140946 mat2: FTBFS: b' [-v]' not found in

Package:
src:mat2
Source:
src:mat2
Submitter:
Andrey Rakhmatullin
Date:
2026-06-28 15:59:02 UTC
Severity:
normal
Tags:
#1140946#5
Date:
2026-06-28 15:58:10 UTC
From:
To:
======================================================================
FAIL: test_help (tests.test_climat2.TestHelp.test_help)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/reproducible-path/mat2-0.14.0/tests/test_climat2.py", line 27,
in test_help
    self.assertIn(b' [-v] [-l]', stdout)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: b' [-v] [-l]' not found in b"usage: mat2 [-h] [-V] [--unknown-
members policy] [--inplace] [--no-sandbox]\n            [-L | -s]\n
[-v | -l | --check-dependencies | files ...]\n\nMetadata anonymisation toolkit
2\n\npositional arguments:\n  files                 the files to
process\n\noptions:\n  -h, --help            show this help message and exit\n
-V, --verbose         show more verbose status information\n  --unknown-members
policy\n                        how to handle unknown members of archive-style
files\n                        (policy should be one of: abort, omit, keep)
[Default:\n                        abort]\n  --inplace             clean in
place, without backup\n  --no-sandbox          Disable bubblewrap's
sandboxing\n  -v, --version         show program's version number and exit\n
-l, --list            list all supported fileformats\n  --check-dependencies
check if mat2 has all the dependencies it needs\n  -L, --lightweight     remove
SOME metadata\n  -s, --show            list harmful metadata detectable by mat2
without\n                        removing them\n"

======================================================================
FAIL: test_no_arg (tests.test_climat2.TestHelp.test_no_arg)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/reproducible-path/mat2-0.14.0/tests/test_climat2.py", line 38,
in test_no_arg
    self.assertIn(b' [-v]', stdout)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
AssertionError: b' [-v]' not found in b"usage: mat2 [-h] [-V] [--unknown-
members policy] [--inplace] [--no-sandbox]\n            [-L | -s]\n
[-v | -l | --check-dependencies | files ...]\n\nMetadata anonymisation toolkit
2\n\npositional arguments:\n  files                 the files to
process\n\noptions:\n  -h, --help            show this help message and exit\n
-V, --verbose         show more verbose status information\n  --unknown-members
policy\n                        how to handle unknown members of archive-style
files\n                        (policy should be one of: abort, omit, keep)
[Default:\n                        abort]\n  --inplace             clean in
place, without backup\n  --no-sandbox          Disable bubblewrap's
sandboxing\n  -v, --version         show program's version number and exit\n
-l, --list            list all supported fileformats\n  --check-dependencies
check if mat2 has all the dependencies it needs\n  -L, --lightweight     remove
SOME metadata\n  -s, --show            list harmful metadata detectable by mat2
without\n                        removing them\n"