[Python-apps-team] Bug#848753: cython: FTBFS: Test failures
Gilles Filippini
pini at debian.org
Thu Jan 12 20:10:14 UTC 2017
On Thu, 12 Jan 2017 20:30:37 +0100 Gilles Filippini <pini at debian.org> wrote:
> Relevant part is:
>
> FAIL: numpy_test ()
> Doctest: numpy_test
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
> raise self.failureException(self.format_failure(new.getvalue()))
> AssertionError: Failed doctest test for numpy_test
> File
> "/<<PKGBUILDDIR>>/build/work-dir/3/run/c/numpy_test/numpy_test.so", line
> 944, in numpy_test
>
> ----------------------------------------------------------------------
> File "/<<PKGBUILDDIR>>/build/work-dir/3/run/c/numpy_test/numpy_test.so",
> line 1139, in numpy_test
> Failed example:
> test_point_record()
> Expected:
> array([(0.0, 0.0), (1.0, -1.0), (2.0, -2.0)],
> dtype=[('x', '!f8'), ('y', '!f8')])
> Got:
> array([( 0., 0.), ( 1., -1.), ( 2., -2.)],
> dtype=[('x', '!f8'), ('y', '!f8')])
>
> Should this be ignored?
Python + numpy has the same behavior:
$ python3
Python 3.5.2+ (default, Dec 13 2016, 14:16:35)
[GCC 6.2.1 20161124] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.array([(0, 0), (1, -1), (2, -2)], [('x', np.float64), ('y', np.float64)])
array([( 0., 0.), ( 1., -1.), ( 2., -2.)],
dtype=[('x', '<f8'), ('y', '<f8')])
>>>
$ python
Python 2.7.13 (default, Dec 18 2016, 20:19:42)
[GCC 6.2.1 20161215] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.array([(0, 0), (1, -1), (2, -2)], [('x', np.float64), ('y', np.float64)])
array([( 0., 0.), ( 1., -1.), ( 2., -2.)],
dtype=[('x', '<f8'), ('y', '<f8')])
>>>
_g.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 508 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20170112/e6fd5a74/attachment-0001.sig>
More information about the Python-apps-team
mailing list