[Python-modules-team] Bug#943455: python-murmurhash: missing test dep on python3-all

Steve Langasek steve.langasek at canonical.com
Fri Oct 25 00:42:42 BST 2019


Package: python-murmurhash
Version: 1.0.1-2
Severity: important
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu focal ubuntu-patch

Dear maintainers,

The python-murmurhash package has a manual autopkgtest to confirm the
module's compatibility with all supported versions of python.  However, it
does not declare a test dependency on python3-all, so not all the versions
of python returned by py3versions --supported are guaranteed to be
installed, resulting in failures such as the following in Ubuntu:

[...]
autopkgtest [18:27:21]: test command1: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -c "import murmurhash; print(murmurhash)" ; done
autopkgtest [18:27:21]: test command1: [-----------------------
bash: python3.8: command not found
Testing with python3.8:
autopkgtest [18:27:21]: test command1: -----------------------]
command1             FAIL non-zero exit status 127
[...]

Attached is a patch to add the missing test dep on python3-all.

However, it might be better to drop this test altogether, since this is a
merely superficial import test of the module, and autodep8 already provides
the same test already for the package - which runs and passes with correct
test deps.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
diff -Nru python-murmurhash-1.0.1/debian/tests/control python-murmurhash-1.0.1/debian/tests/control
--- python-murmurhash-1.0.1/debian/tests/control	2019-01-17 23:51:52.000000000 -0800
+++ python-murmurhash-1.0.1/debian/tests/control	2019-10-24 16:37:58.000000000 -0700
@@ -1 +1,2 @@
 Test-Command: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -c "import murmurhash; print(murmurhash)" ; done
+Depends: @, python3-all


More information about the Python-modules-team mailing list