thouis / numpy-trac-migration

numpy Trac to github issues migration
2 stars 3 forks source link

numpy.core.tests.test_multiarray.TestView failures on big-endian machines (migrated from Trac #770) #2323

Closed thouis closed 12 years ago

thouis commented 12 years ago

Original ticket http://projects.scipy.org/numpy/ticket/770 Reported 2008-05-05 by atmention:chanley, assigned to unknown.

We are receiving the following numpy self-test failures on our big-endian Solaris 10 system. The numpy version is 1.1.0.dev5125.

======================================================================
FAIL: test_basic (numpy.core.tests.test_multiarray.TestView)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/ra/pyssg/2.5.1/numpy/core/tests/test_multiarray.py", line 843, in test_basic
    assert_array_equal(y, [67305985, 134678021])
  File "/usr/stsci/pyssgdev/2.5.1/numpy/testing/utils.py", line 248, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File "/usr/stsci/pyssgdev/2.5.1/numpy/testing/utils.py", line 240, in assert_array_compare
    assert cond, msg
AssertionError: 
Arrays are not equal

(mismatch 100.0%)
 x: array([16909060, 84281096])
 y: array([ 67305985, 134678021])

======================================================================
FAIL: test_keywords (numpy.core.tests.test_multiarray.TestView)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/ra/pyssg/2.5.1/numpy/core/tests/test_multiarray.py", line 852, in test_keywords
    assert_array_equal(y,[[513]])
  File "/usr/stsci/pyssgdev/2.5.1/numpy/testing/utils.py", line 248, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File "/usr/stsci/pyssgdev/2.5.1/numpy/testing/utils.py", line 240, in assert_array_compare
    assert cond, msg
AssertionError: 
Arrays are not equal

(mismatch 100.0%)
 x: array([[258]], dtype=int16)
 y: array([[513]])

----------------------------------------------------------------------
Ran 986 tests in 21.707s

FAILED (failures=2)
errors: 
failures: 
    (<numpy.core.tests.test_multiarray.TestView testMethod=test_basic>, 'Traceback (most recent call last):\n  File "/usr/ra/pyssg/2.5.1/numpy/core/tests/test_multiarray.py", line 843, in test_basic\n    assert_array_equal(y, [67305985, 134678021])\n  File "/usr/stsci/pyssgdev/2.5.1/numpy/testing/utils.py", line 248, in assert_array_equal\n    verbose=verbose, header=\'Arrays are not equal\')\n  File "/usr/stsci/pyssgdev/2.5.1/numpy/testing/utils.py", line 240, in assert_array_compare\n    assert cond, msg\nAssertionError: \nArrays are not equal\n\n(mismatch 100.0%)\n x: array([16909060, 84281096])\n y: array([ 67305985, 134678021])\n')
    (<numpy.core.tests.test_multiarray.TestView testMethod=test_keywords>, 'Traceback (most recent call last):\n  File "/usr/ra/pyssg/2.5.1/numpy/core/tests/test_multiarray.py", line 852, in test_keywords\n    assert_array_equal(y,[[513]])\n  File "/usr/stsci/pyssgdev/2.5.1/numpy/testing/utils.py", line 248, in assert_array_equal\n    verbose=verbose, header=\'Arrays are not equal\')\n  File "/usr/stsci/pyssgdev/2.5.1/numpy/testing/utils.py", line 240, in assert_array_compare\n    assert cond, msg\nAssertionError: \nArrays are not equal\n\n(mismatch 100.0%)\n x: array([[258]], dtype=int16)\n y: array([[513]])\n')
if ( 1 != 0 ) then
echo <font color=orange>selftest</font>
exit 0
thouis commented 12 years ago

Comment in Trac by atmention:rkern, 2008-05-20

thouis commented 12 years ago

Comment in Trac by atmention:chanley, 2008-05-21

This has not been fixed as of 1.1.0dev5211 on either our Sun running Solaris 10 or our PPC MAC running 10.4.11. Here is the output from the seltest:

Numpy version 1.1.0.dev5211
Python version 2.5.1 (r251:54863, Jan 21 2008, 11:03:00) [C]
  Found 18/18 tests for numpy.core.defmatrix
  Found 3/3 tests for numpy.core.memmap
  Found 283/283 tests for numpy.core.multiarray
  Found 70/70 tests for numpy.core.numeric
  Found 36/36 tests for numpy.core.numerictypes
  Found 12/12 tests for numpy.core.records
  Found 7/7 tests for numpy.core.scalarmath
  Found 16/16 tests for numpy.core.umath
  Found 5/5 tests for numpy.distutils.misc_util
  Found 2/2 tests for numpy.fft.fftpack
  Found 3/3 tests for numpy.fft.helper
  Found 24/24 tests for numpy.lib._datasource
  Found 10/10 tests for numpy.lib.arraysetops
  Found 1/1 tests for numpy.lib.financial
  Found 0/0 tests for numpy.lib.format
  Found 53/53 tests for numpy.lib.function_base
  Found 6/6 tests for numpy.lib.getlimits
  Found 6/6 tests for numpy.lib.index_tricks
  Found 15/15 tests for numpy.lib.io
  Found 1/1 tests for numpy.lib.machar
  Found 4/4 tests for numpy.lib.polynomial
  Found 49/49 tests for numpy.lib.shape_base
  Found 15/15 tests for numpy.lib.twodim_base
  Found 43/43 tests for numpy.lib.type_check
  Found 1/1 tests for numpy.lib.ufunclike
  Found 89/89 tests for numpy.linalg
  Found 94/94 tests for numpy.ma.core
  Found 15/15 tests for numpy.ma.extras
  Found 7/7 tests for numpy.random
  Found 16/16 tests for numpy.testing.utils
  Found 0/0 tests for __main__
.............................................................................................................................................................................................................................................................................................................FF.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
FAIL: test_basic (numpy.core.tests.test_multiarray.TestView)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/ra/pyssg/2.5.1/numpy/core/tests/test_multiarray.py", line 843, in test_basic
    assert_array_equal(y,z)
  File "/usr/stsci/pyssgdev/2.5.1/numpy/testing/utils.py", line 248, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File "/usr/stsci/pyssgdev/2.5.1/numpy/testing/utils.py", line 240, in assert_array_compare
    assert cond, msg
AssertionError: 
Arrays are not equal

(mismatch 100.0%)
 x: array([ 67305985, 134678021])
 y: array([16909060, 84281096])

======================================================================
FAIL: test_keywords (numpy.core.tests.test_multiarray.TestView)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/ra/pyssg/2.5.1/numpy/core/tests/test_multiarray.py", line 857, in test_keywords
    assert_equal(y.dtype,np.int16)
  File "/usr/stsci/pyssgdev/2.5.1/numpy/testing/utils.py", line 145, in assert_equal
    assert desired == actual, msg
AssertionError: 
Items are not equal:
 ACTUAL: dtype('<i2')
 DESIRED: <type 'numpy.int16'>

----------------------------------------------------------------------
Ran 1000 tests in 21.171s

FAILED (failures=2)
errors: 
failures: 
    (<numpy.core.tests.test_multiarray.TestView testMethod=test_basic>, 'Traceback (most recent call last):\n  File "/usr/ra/pyssg/2.5.1/numpy/core/tests/test_multiarray.py", line 843, in test_basic\n    assert_array_equal(y,z)\n  File "/usr/stsci/pyssgdev/2.5.1/numpy/testing/utils.py", line 248, in assert_array_equal\n    verbose=verbose, header=\'Arrays are not equal\')\n  File "/usr/stsci/pyssgdev/2.5.1/numpy/testing/utils.py", line 240, in assert_array_compare\n    assert cond, msg\nAssertionError: \nArrays are not equal\n\n(mismatch 100.0%)\n x: array([ 67305985, 134678021])\n y: array([16909060, 84281096])\n')
    (<numpy.core.tests.test_multiarray.TestView testMethod=test_keywords>, 'Traceback (most recent call last):\n  File "/usr/ra/pyssg/2.5.1/numpy/core/tests/test_multiarray.py", line 857, in test_keywords\n    assert_equal(y.dtype,np.int16)\n  File "/usr/stsci/pyssgdev/2.5.1/numpy/testing/utils.py", line 145, in assert_equal\n    assert desired == actual, msg\nAssertionError: \nItems are not equal:\n ACTUAL: dtype(\'<i2\')\n DESIRED: <type \'numpy.int16\'>\n')
if ( 1 != 0 ) then
echo <font color=orange>selftest</font>
exit 0
thouis commented 12 years ago

Comment in Trac by atmention:rkern, 2008-05-21

Try again with r5212.

thouis commented 12 years ago

Comment in Trac by atmention:chanley, 2008-05-21

Robert,

r5212 has corrected the problem with the tests. Thanks.

Chris