[Debian-med-packaging] Bug#895176: tifffile: please set autopkgtests 'allow-stderr' for big-endian architectures
Steve Langasek
steve.langasek at canonical.com
Sun Apr 8 07:54:29 BST 2018
Package: tifffile
Version: 20170929-1
Severity: minor
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu bionic ubuntu-patch autopkgtest
Dear maintainers,
With tifffile 20170929-1, the autopkgtests have been failing when run on
s390x in Ubuntu:
[...]
autopkgtest [03:01:14]: test python-import: - - - - - - - - - - results - - - - - - - - - -
python-import FAIL stderr: /usr/lib/python2.7/dist-packages/tifffile.py:6553: UserWarning: 'module' object has no attribute 'unpack_ints'
autopkgtest [03:01:14]: test python-import: - - - - - - - - - - stderr - - - - - - - - - -
/usr/lib/python2.7/dist-packages/tifffile.py:6553: UserWarning: 'module' object has no attribute 'unpack_ints'
Functionality might be degraded or be slow.
warnings.warn("%s%s" % (e, warn))
[...]
http://autopkgtest.ubuntu.com/packages/t/tifffile/bionic/s390x
This is because the module tries to replace a python implementation of
unpack_ints() with an optimized C implementation at runtime, but the C
implementation is only defined for little-endian architectures. Thus the
autopkgtest will currently never pass on big-endian architectures, because
by default a test outputting to stderr is considered a failure.
Under the circumstances, I think it's best to simply allow the test to
output to stderr, therefore I've uploaded the attached patch to Ubuntu to
fix this failure there. Please consider including it in Debian as well.
Thanks,
--
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 http://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
-------------- next part --------------
diff -Nru tifffile-20170929/debian/tests/control tifffile-20170929/debian/tests/control
--- tifffile-20170929/debian/tests/control 2018-02-05 05:02:32.000000000 -0800
+++ tifffile-20170929/debian/tests/control 2018-04-07 23:46:53.000000000 -0700
@@ -1,2 +1,3 @@
Tests: python-import
Depends: @, python, imagemagick
+Restrictions: allow-stderr
More information about the Debian-med-packaging
mailing list