[Numpy-discussion] numpy unittest failure on Mac PPC and Solaris 10
Christopher Hanley
chanley at stsci.edu
Fri Apr 4 14:11:55 EDT 2008
Hi,
We are seeing the following error on both Solaris and Mac PPC when
running the numpy unittests:
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.......................................................................................................................................................................................................................................................................
======================================================================
FAIL: test_record (numpy.lib.tests.test_io.Testloadtxt)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/stsci/pyssgdev/2.5.1/numpy/lib/tests/test_io.py", line 42,
in test_record
assert_array_equal(x, a)
File "/usr/stsci/pyssgdev/2.5.1/numpy/testing/utils.py", line 225, in
assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/usr/stsci/pyssgdev/2.5.1/numpy/testing/utils.py", line 217, in
assert_array_compare
assert cond, msg
AssertionError:
Arrays are not equal
(mismatch 100.0%)
x: array([(1, 2), (3, 4)],
dtype=[('x', '>i4'), ('y', '>i4')])
y: array([(1, 2), (3, 4)],
dtype=[('x', '<i4'), ('y', '<i4')])
----------------------------------------------------------------------
Ran 837 tests in 4.281s
FAILED (failures=1)
Given the platforms this error occurs on I am guessing this is a big vs.
little-endian problem.
Chris
--
Christopher Hanley
Systems Software Engineer
Space Telescope Science Institute
3700 San Martin Drive
Baltimore MD, 21218
(410) 338-4338
More information about the NumPy-Discussion
mailing list