Bug#945260: python-quantities ftbfs with Python 3.8
Matthias Klose
doko at debian.org
Fri Nov 22 05:55:49 GMT 2019
Package: src:python-quantities
Version: 0.12.3-2
Severity: serious
Tags: sid bullseye
User: debian-python at lists.debian.org
Usertags: python3.8
======================================================================
ERROR: test_clip (quantities.tests.test_methods.TestQuantityMethods)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/quantities/quantity.py",
line 247, in __array_prepare__
res._dimensionality = p_dict[uf](*objs)
KeyError: <ufunc 'clip'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/quantities/tests/test_methods.py",
line 198, in test_clip
self.methodWithOut(
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/quantities/tests/test_methods.py",
line 125, in methodWithOut
ret = getattr(q.copy(), name)(*args, out=out, **kw)
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/quantities/quantity.py",
line 579, in clip
clipped = self.magnitude.clip(
File "/usr/lib/python3/dist-packages/numpy/core/_methods.py", line 131, in _clip
return _clip_dep_invoke_with_casting(
File "/usr/lib/python3/dist-packages/numpy/core/_methods.py", line 85, in
_clip_dep_invoke_with_casting
return ufunc(*args, out=out, **kwargs)
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/quantities/quantity.py",
line 249, in __array_prepare__
raise ValueError(
ValueError: ufunc <ufunc 'clip'> not supported by quantities
please file a bug report at https://github.com/python-quantities
----------------------------------------------------------------------
Ran 161 tests in 0.954s
FAILED (errors=1, expected failures=3)
More information about the debian-science-maintainers
mailing list