--- Begin Message ---
Source: python-pint
Version: 0.8.1-1
Severity: serious
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-pint.html
...
dh_auto_test -O--buildsystem=pybuild
I: pybuild base:184: cd
/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build; python2.7 -m nose
S.S................................................./usr/lib/python2.7/unittest/case.py:340:
RuntimeWarning: TestResult has no addExpectedFailure method, reporting as
passes
RuntimeWarning)
.......S...S............................SSSSSSSSSSS.................S...................................................................................................................................................E.E...E.................................................................................................................................................................................................................................................................................................../build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/test_quantity.py:287:
RuntimeWarning: to_compact applied to non numerical types has an undefined
behavior.
self.assertQuantityAlmostIdentical(q.to_compact(unit=unit),
.......................................F..F..........................................................................................................................................................................
======================================================================
ERROR: test_inplace_exponentiation
(pint.testsuite.test_quantity.TestOffsetUnitMath) [with input = ((10, u'degC'),
(2, u'')); expected_output = [u'error', (80173.92249999999, u'kelvin**2')]]
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/parameterized.py",
line 116, in new_method
return method(self, *param_values)
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/parameterized.py",
line 137, in newfunc
return func(*arg, **kwargs)
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/test_quantity.py",
line 1165, in test_inplace_exponentiation
self.assertEqual(op.ipow(in1_cp, in2).units, expected.units)
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/quantity.py",
line 961, in __ipow__
self._magnitude **= _to_magnitude(other, self.force_ndarray)
TypeError: unsupported operand type(s) for ** or pow(): 'numpy.ndarray' and
'Quantity'
======================================================================
ERROR: test_inplace_exponentiation
(pint.testsuite.test_quantity.TestOffsetUnitMath) [with input = ((10,
u'kelvin'), (2, u'')); expected_output = [(100.0, u'kelvin**2'), (100.0,
u'kelvin**2')]]
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/parameterized.py",
line 116, in new_method
return method(self, *param_values)
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/parameterized.py",
line 137, in newfunc
return func(*arg, **kwargs)
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/test_quantity.py",
line 1165, in test_inplace_exponentiation
self.assertEqual(op.ipow(in1_cp, in2).units, expected.units)
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/quantity.py",
line 961, in __ipow__
self._magnitude **= _to_magnitude(other, self.force_ndarray)
TypeError: unsupported operand type(s) for ** or pow(): 'numpy.ndarray' and
'Quantity'
======================================================================
ERROR: test_inplace_exponentiation
(pint.testsuite.test_quantity.TestOffsetUnitMath) [with input = ((10, u'degC'),
(500.0, u'millikelvin/kelvin')); expected_output = [u'error',
(16.827061537891872, u'kelvin**0.5')]]
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/parameterized.py",
line 116, in new_method
return method(self, *param_values)
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/parameterized.py",
line 137, in newfunc
return func(*arg, **kwargs)
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/test_quantity.py",
line 1165, in test_inplace_exponentiation
self.assertEqual(op.ipow(in1_cp, in2).units, expected.units)
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/quantity.py",
line 961, in __ipow__
self._magnitude **= _to_magnitude(other, self.force_ndarray)
TypeError: unsupported operand type(s) for ** or pow(): 'numpy.ndarray' and
'Quantity'
======================================================================
FAIL: test_isfinite (pint.testsuite.test_umath.TestFloatingUfuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/test_umath.py",
line 617, in test_isfinite
(self.q1, self.qm, self.qless))
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/test_umath.py",
line 101, in _testn
self._test1(func, ok_with, raise_with, output_units=None, results=results)
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/test_umath.py",
line 85, in _test1
self.assertQuantityAlmostEqual(qm, res, rtol=rtol, msg=err_msg)
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/__init__.py",
line 117, in assertQuantityAlmostEqual
np.testing.assert_allclose(m1, m2, rtol=rtol, atol=atol, err_msg=msg)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 1395, in
assert_allclose
verbose=verbose, header=header, equal_nan=equal_nan)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 778, in
assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-06, atol=0
At isreal with [ 1. 2. 3. 4.] joule
(mismatch 100.0%)
x: array(False, dtype=bool)
y: array([ True, True, True, True], dtype=bool)
======================================================================
FAIL: test_isreal (pint.testsuite.test_umath.TestFloatingUfuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/test_umath.py",
line 609, in test_isreal
(self.q1, self.qm, self.qless))
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/test_umath.py",
line 101, in _testn
self._test1(func, ok_with, raise_with, output_units=None, results=results)
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/test_umath.py",
line 85, in _test1
self.assertQuantityAlmostEqual(qm, res, rtol=rtol, msg=err_msg)
File
"/build/1st/python-pint-0.8.1/.pybuild/pythonX.Y_2.7/build/pint/testsuite/__init__.py",
line 117, in assertQuantityAlmostEqual
np.testing.assert_allclose(m1, m2, rtol=rtol, atol=atol, err_msg=msg)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 1395, in
assert_allclose
verbose=verbose, header=header, equal_nan=equal_nan)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 778, in
assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-06, atol=0
At isreal with [ 1. 2. 3. 4.] joule
(mismatch 100.0%)
x: array(False, dtype=bool)
y: array([ True, True, True, True], dtype=bool)
----------------------------------------------------------------------
Ran 779 tests in 40.510s
FAILED (SKIP=16, errors=3, failures=2)
--- End Message ---