[Pkg-privacy-maintainers] Bug#975533: mat2's autopkg tests fail with Python 3.9
Matthias Klose
doko at debian.org
Mon Nov 23 10:15:06 GMT 2020
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 - - - - - -
- - - -
More information about the Pkg-privacy-maintainers
mailing list