[Numpy-discussion] Failure in test_iterator.py at Travis

Charles R Harris charlesr.harris at gmail.com
Thu Dec 13 22:04:59 EST 2012


On Thu, Dec 13, 2012 at 7:23 PM, Ondřej Čertík <ondrej.certik at gmail.com>wrote:

> Hi,
>
> Another weird bug sometimes happen in
> numpy/core/tests/test_iterator.py, it looks like this:
>
> ======================================================================
> FAIL: test_iterator.test_iter_array_cast
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/home/travis/virtualenv/python2.5/lib/python2.5/site-packages/nose/case.py",
> line 197, in runTest
>     self.test(*self.arg)
>   File
> "/home/travis/virtualenv/python2.5/lib/python2.5/site-packages/numpy/core/tests/test_iterator.py",
> line 836, in test_iter_array_cast
>     assert_equal(i.operands[0].strides, (-96,8,-32))
>   File
> "/home/travis/virtualenv/python2.5/lib/python2.5/site-packages/numpy/testing/utils.py",
> line 252, in assert_equal
>     assert_equal(actual[k], desired[k], 'item=%r\n%s' % (k,err_msg),
> verbose)
>   File
> "/home/travis/virtualenv/python2.5/lib/python2.5/site-packages/numpy/testing/utils.py",
> line 314, in assert_equal
>     raise AssertionError(msg)
> AssertionError:
> Items are not equal:
> item=0
>
>  ACTUAL: 96
>  DESIRED: -96
>
> ----------------------------------------------------------------------
>
>
> But the problem is that there is no numpy/core/tests/test_iterator.py
> file in current branches.... This error was triggered for example by
> these PRs:
>
> https://github.com/numpy/numpy/pull/2765
> https://github.com/numpy/numpy/pull/2815
>
> and here are links to the failing Travis tests:
>
> https://travis-ci.org/certik/numpy/builds/3656959
> https://travis-ci.org/numpy/numpy/builds/3330234
>
>
> Any idea what is happening here and how to fix it?
>
>
That should have been fixed by Nathaniel's travis fix. Hmm...

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20121213/e024acb4/attachment.html>


More information about the NumPy-Discussion mailing list