[Pkg-privacy-maintainers] Bug#975533: mat2's autopkg tests fail with Python 3.9

nicoo nicoo at debian.org
Mon Dec 14 14:57:10 GMT 2020


Hi,

There doesn't seem to be anyone else handling the mat2 RC bug (FTBFS &
autopkgtest failure) so I will do it.

AFAICT this is only a matter of importing the right upstream commit
(62ec8f6c1efc06364eb5f8c3d81e1b5dbcfc6e64) as a Debian patch.


Best,

  nicoo

On Mon, Nov 23, 2020 at 11:15:06AM +0100, Matthias Klose wrote:
> Package: src:mat2
> Version: 0.11.0-1
> Severity: serious
> Tags: sid bullseye
> User: debian-python at lists.debian.org
> Usertags: python3.9
> 
> [...]
> autopkgtest [14:10:22]: test command1: [-----------------------
> ============================= test session starts ==============================
> platform linux -- Python 3.9.0+, pytest-4.6.11, py-1.9.0, pluggy-0.13.0
> rootdir: /tmp/autopkgtest-lxc.lpxn4tf6/downtmp/build.HJV/src
> collected 119 items
> 
> tests/test_climat2.py FF.......................                          [ 21%]
> tests/test_corrupted_files.py .......................................... [ 56%]
>                                                                          [ 56%]
> tests/test_deep_cleaning.py .....                                        [ 60%]
> tests/test_libmat2.py ..........................................         [ 95%]
> tests/test_lightweight_cleaning.py ..                                    [ 97%]
> tests/test_policy.py ...                                                 [100%]
> 
> =================================== FAILURES ===================================
> ______________________________ TestHelp.test_help ______________________________
> 
> self = <tests.test_climat2.TestHelp testMethod=test_help>
> 
>     def test_help(self):
>         proc = subprocess.Popen(mat2_binary + ['--help'], stdout=subprocess.PIPE)
>         stdout, _ = proc.communicate()
>         self.assertIn(b'mat2 [-h] [-V]', stdout)
>         self.assertIn(b'[--unknown-members policy]', stdout)
>         self.assertIn(b'[--inplace]', stdout)
>         self.assertIn(b'[--no-sandbox]', stdout)
>         self.assertIn(b' [-v] [-l]', stdout)
>         self.assertIn(b'[--check-dependencies]', stdout)
>         self.assertIn(b'[-L | -s]', stdout)
> >       self.assertIn(b'[files [files ...]]', stdout)
> E       AssertionError: b'[files [files ...]]' not found in b"usage: mat2 [-h]
> [-V] [--unknown-members policy] [--inplace] [--no-sandbox]\n            [-v]
> [-l] [--check-dependencies] [-L | -s]\n            [files ...]\n\nMetadata
> anonymisation toolkit 2\n\npositional arguments:\n  files                 the
> files to process\n\noptional arguments:\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"
> 
> tests/test_climat2.py:32: AssertionError
> _____________________________ TestHelp.test_no_arg _____________________________
> 
> self = <tests.test_climat2.TestHelp testMethod=test_no_arg>
> 
>     def test_no_arg(self):
>         proc = subprocess.Popen(mat2_binary, stdout=subprocess.PIPE)
>         stdout, _ = proc.communicate()
>         self.assertIn(b'mat2 [-h] [-V]', stdout)
>         self.assertIn(b'[--unknown-members policy]', stdout)
>         self.assertIn(b'[--inplace]', stdout)
>         self.assertIn(b'[--no-sandbox]', stdout)
>         self.assertIn(b' [-v] [-l] [--check-dependencies] [-L | -s]', stdout)
> >       self.assertIn(b'[files [files ...]]', stdout)
> E       AssertionError: b'[files [files ...]]' not found in b"usage: mat2 [-h]
> [-V] [--unknown-members policy] [--inplace] [--no-sandbox]\n            [-v]
> [-l] [--check-dependencies] [-L | -s]\n            [files ...]\n\nMetadata
> anonymisation toolkit 2\n\npositional arguments:\n  files                 the
> files to process\n\noptional arguments:\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"
> 
> tests/test_climat2.py:42: AssertionError
> ==================== 2 failed, 117 passed in 65.19 seconds =====================
> autopkgtest [14:11:28]: test command1: -----------------------]
> autopkgtest [14:11:28]: test command1:  - - - - - - - - - - results - - - - - -
> - - - -
> 
-------------- 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/pkg-privacy-maintainers/attachments/20201214/f7c04c77/attachment.sig>


More information about the Pkg-privacy-maintainers mailing list