[SciPy-dev] recent scipy.io

Nils Wagner nwagner@iam.uni-stuttgart...
Sun Oct 5 04:51:39 CDT 2008


======================================================================
ERROR: Failure: ImportError (No module named 
byteordercodes)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/loader.py", 
line 364, in loadTestsFromName
     addr.filename, addr.module)
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/importer.py", 
line 39, in importFromPath
     return self.importFromDir(dir_path, fqname)
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/importer.py", 
line 84, in importFromDir
     mod = load_module(part_fqname, fh, filename, desc)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_byteordercodes.py", 
line 9, in <module>
     import scipy.io.byteordercodes as sibc
ImportError: No module named byteordercodes

======================================================================
FAIL: test_mio.test_load('double', 
['/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testdouble_6.1_SOL2.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testdouble_7.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testdouble_6.5.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testdouble_4.2c_SOL2.mat'], 
{'testdouble': array([[ 0.   ],
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 70, in _check_case
     _check_level(k_label, expected, matdict[k])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 57, in _check_level
     assert_array_almost_equal(actual, expected, 
err_msg=label, decimal=5)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 310, in assert_array_almost_equal
     header='Arrays are not almost equal')
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 260, in assert_array_compare
     raise AssertionError(msg)
AssertionError:
Arrays are not almost equal
test double; file 
/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testdouble_6.1_SOL2.mat, 
variable testdouble
(shapes (1, 9), (9, 1) mismatch)
  x: array([[ 0.        ,  0.78539816,  1.57079633, 
 2.35619449,  3.14159265,
          3.92699082,  4.71238898,  5.49778714, 
 6.28318531]])
  y: array([[ 0.        ],
        [ 0.78539816],
        [ 1.57079633],...

======================================================================
FAIL: test_mio.test_load('string', 
['/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststring_4.2c_SOL2.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststring_6.5.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststring_7.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststring_6.1_SOL2.mat'], 
{'teststring': u'"Do nine men interpret?" "Nine men," I 
nod.'})
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 70, in _check_case
     _check_level(k_label, expected, matdict[k])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 60, in _check_level
     "Types %s and %s do not match at %s" % (typex, typac, 
label)
AssertionError: Types <type 'unicode'> and <type 
'numpy.ndarray'> do not match at test string; file 
/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststring_4.2c_SOL2.mat, 
variable teststring

======================================================================
FAIL: test_mio.test_load('complex', 
['/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testcomplex_4.2c_SOL2.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testcomplex_6.1_SOL2.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testcomplex_6.5.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testcomplex_7.1_GLNX86.mat'], 
{'testcomplex': array([[  1.000e+00 +0.000e+00j],
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 70, in _check_case
     _check_level(k_label, expected, matdict[k])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 57, in _check_level
     assert_array_almost_equal(actual, expected, 
err_msg=label, decimal=5)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 310, in assert_array_almost_equal
     header='Arrays are not almost equal')
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 260, in assert_array_compare
     raise AssertionError(msg)
AssertionError:
Arrays are not almost equal
test complex; file 
/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testcomplex_4.2c_SOL2.mat, 
variable testcomplex
(shapes (1, 9), (9, 1) mismatch)
  x: array([[  1.00000000e+00 +0.00000000e+00j,
           7.07106781e-01 +7.07106781e-01j,
           6.12323400e-17 +1.00000000e+00j,...
  y: array([[  1.00000000e+00 +0.00000000e+00j],
        [  7.07106781e-01 +7.07106781e-01j],
        [  6.12323400e-17 +1.00000000e+00j],...

======================================================================
FAIL: test_mio.test_load('multi', 
['/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testmulti_4.2c_SOL2.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testmulti_7.1_GLNX86.mat'], 
{'a': array([[ 1.,  2.,  3.,  4.,  5.],
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 70, in _check_case
     _check_level(k_label, expected, matdict[k])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 57, in _check_level
     assert_array_almost_equal(actual, expected, 
err_msg=label, decimal=5)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 310, in assert_array_almost_equal
     header='Arrays are not almost equal')
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 260, in assert_array_compare
     raise AssertionError(msg)
AssertionError:
Arrays are not almost equal
test multi; file 
/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testmulti_4.2c_SOL2.mat, 
variable theta
(shapes (1, 9), (9, 1) mismatch)
  x: array([[ 0.        ,  0.78539816,  1.57079633, 
 2.35619449,  3.14159265,
          3.92699082,  4.71238898,  5.49778714, 
 6.28318531]])
  y: array([[ 0.        ],
        [ 0.78539816],
        [ 1.57079633],...

======================================================================
FAIL: test_mio.test_load('onechar', 
['/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testonechar_4.2c_SOL2.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testonechar_7.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testonechar_6.1_SOL2.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testonechar_6.5.1_GLNX86.mat'], 
{'testonechar': u'r'})
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 70, in _check_case
     _check_level(k_label, expected, matdict[k])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 60, in _check_level
     "Types %s and %s do not match at %s" % (typex, typac, 
label)
AssertionError: Types <type 'unicode'> and <type 
'numpy.ndarray'> do not match at test onechar; file 
/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testonechar_4.2c_SOL2.mat, 
variable testonechar

======================================================================
FAIL: test_mio.test_load('cell', 
['/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testcell_6.1_SOL2.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testcell_7.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testcell_6.5.1_GLNX86.mat'], 
{'testcell': array([This cell contains this string and 3 
arrays of increasing length, 1, [1 2], [1 2 3]], 
dtype=object)})
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 70, in _check_case
     _check_level(k_label, expected, matdict[k])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 27, in _check_level
     assert len(expected) == len(actual), "Different list 
lengths at %s" % label
AssertionError: Different list lengths at test cell; file 
/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testcell_6.1_SOL2.mat, 
variable testcell

======================================================================
FAIL: test_mio.test_load('emptycell', 
['/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testemptycell_7.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testemptycell_6.5.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testemptycell_5.3_SOL2.mat'], 
{'testemptycell': array([1, 2, [], [], 3], dtype=object)})
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 70, in _check_case
     _check_level(k_label, expected, matdict[k])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 27, in _check_level
     assert len(expected) == len(actual), "Different list 
lengths at %s" % label
AssertionError: Different list lengths at test emptycell; 
file 
/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testemptycell_7.1_GLNX86.mat, 
variable testemptycell

======================================================================
FAIL: test_mio.test_load('stringarray', 
['/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststringarray_6.1_SOL2.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststringarray_7.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststringarray_6.5.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststringarray_4.2c_SOL2.mat'], 
{'teststringarray': array([one  , two  , three], 
dtype=object)})
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 70, in _check_case
     _check_level(k_label, expected, matdict[k])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 30, in _check_level
     _check_level(level_label, ev, actual[i])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 60, in _check_level
     "Types %s and %s do not match at %s" % (typex, typac, 
label)
AssertionError: Types <type 'unicode'> and <type 
'numpy.unicode_'> do not match at test stringarray; file 
/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststringarray_6.1_SOL2.mat, 
variable teststringarray, [0],

======================================================================
FAIL: test_mio.test_load('struct', 
['/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststruct_6.5.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststruct_7.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststruct_6.1_SOL2.mat'], 
{'teststruct': array([ (u'Rats live on no evil star.', 
[1.4142135623730951, 2.7182818284590451, 
3.1415926535897931], 
[(1.4142135623730951+1.4142135623730951j), 
(2.7182818284590451+2.7182818284590451j), 
(3.1415926535897931+3.1415926535897931j)])],
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 70, in _check_case
     _check_level(k_label, expected, matdict[k])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 30, in _check_level
     _check_level(level_label, ev, actual[i])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 60, in _check_level
     "Types %s and %s do not match at %s" % (typex, typac, 
label)
AssertionError: Types <type 'numpy.void'> and <type 
'numpy.ndarray'> do not match at test struct; file 
/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststruct_6.5.1_GLNX86.mat, 
variable teststruct, [0],

======================================================================
FAIL: test_mio.test_load('cellnest', 
['/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testcellnest_6.5.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testcellnest_7.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testcellnest_6.1_SOL2.mat'], 
{'testcellnest': array([1, [2 3 [4 5]]], dtype=object)})
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 70, in _check_case
     _check_level(k_label, expected, matdict[k])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 27, in _check_level
     assert len(expected) == len(actual), "Different list 
lengths at %s" % label
AssertionError: Different list lengths at test cellnest; 
file 
/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testcellnest_6.5.1_GLNX86.mat, 
variable testcellnest

======================================================================
FAIL: test_mio.test_load('structnest', 
['/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststructnest_7.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststructnest_6.5.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststructnest_6.1_SOL2.mat'], 
{'teststructnest': array([[(1, [[(u'number 3',)]])]],
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 70, in _check_case
     _check_level(k_label, expected, matdict[k])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 30, in _check_level
     _check_level(level_label, ev, actual[i])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 30, in _check_level
     _check_level(level_label, ev, actual[i])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 60, in _check_level
     "Types %s and %s do not match at %s" % (typex, typac, 
label)
AssertionError: Types <type 'numpy.void'> and <class 
'scipy.io.matlab.mio5.mat_struct'> do not match at test 
structnest; file 
/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststructnest_7.1_GLNX86.mat, 
variable teststructnest, [0], , [0],

======================================================================
FAIL: test_mio.test_load('structarr', 
['/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststructarr_6.1_SOL2.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststructarr_6.5.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststructarr_7.1_GLNX86.mat'], 
{'teststructarr': array([[(1, 2)],
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 70, in _check_case
     _check_level(k_label, expected, matdict[k])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 27, in _check_level
     assert len(expected) == len(actual), "Different list 
lengths at %s" % label
AssertionError: Different list lengths at test structarr; 
file 
/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/teststructarr_6.1_SOL2.mat, 
variable teststructarr

======================================================================
FAIL: test_mio.test_load('object', 
['/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testobject_7.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testobject_6.5.1_GLNX86.mat', 
'/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testobject_6.1_SOL2.mat'], 
{'testobject': <scipy.io.matlab.mio5.MatlabObject instance 
at 0x33bbcf8>})
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 70, in _check_case
     _check_level(k_label, expected, matdict[k])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 41, in _check_level
     assert k in ac_fields, "Missing property at %s" % 
label
AssertionError: Missing property at test object; file 
/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testobject_7.1_GLNX86.mat, 
variable testobject

======================================================================
FAIL: test_mio.test_load('unicode', 
['/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testunicode_7.1_GLNX86.mat'], 
{'testunicode': u'Japanese: 
\n\u3059\u3079\u3066\u306e\u4eba\u9593\u306f\u3001\u751f\u307e\u308c\u306a\u304c\u3089\u306b\u3057\u3066\u81ea\u7531\u3067\u3042\u308a\u3001\n\u304b\u3064\u3001\u5c0a\u53b3\u3068\u6a29\u5229\u3068 
\u306b\u3064\u3044\u3066\u5e73\u7b49\u3067\u3042\u308b\u3002\n\u4eba\u9593\u306f\u3001\u7406\u6027\u3068\u826f\u5fc3\u3068\u3092\u6388\u3051\u3089\u308c\u3066\u304a\u308a\u3001\n\u4e92\u3044\u306b\u540c\u80de\u306e\u7cbe\u795e\u3092\u3082\u3063\u3066\u884c\u52d5\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002'})
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 70, in _check_case
     _check_level(k_label, expected, matdict[k])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 60, in _check_level
     "Types %s and %s do not match at %s" % (typex, typac, 
label)
AssertionError: Types <type 'unicode'> and <type 
'numpy.ndarray'> do not match at test unicode; file 
/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/data/testunicode_7.1_GLNX86.mat, 
variable testunicode

======================================================================
FAIL: test_mio.test_round_trip('string_round_trip', 
{'teststring': u'"Do nine men interpret?" "Nine men," I 
nod.'}, '4')
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 77, in _rt_check_case
     _check_case(name, [mat_stream], expected, 
struct_as_record=True)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 70, in _check_case
     _check_level(k_label, expected, matdict[k])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 60, in _check_level
     "Types %s and %s do not match at %s" % (typex, typac, 
label)
AssertionError: Types <type 'unicode'> and <type 
'numpy.ndarray'> do not match at test string_round_trip; 
file <cStringIO.StringO object at 0x3751c00>, variable 
teststring

======================================================================
FAIL: test_mio.test_round_trip('onechar_round_trip', 
{'testonechar': u'r'}, '4')
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 77, in _rt_check_case
     _check_case(name, [mat_stream], expected, 
struct_as_record=True)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 70, in _check_case
     _check_level(k_label, expected, matdict[k])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 60, in _check_level
     "Types %s and %s do not match at %s" % (typex, typac, 
label)
AssertionError: Types <type 'unicode'> and <type 
'numpy.ndarray'> do not match at test onechar_round_trip; 
file <cStringIO.StringO object at 0x3751810>, variable 
testonechar

======================================================================
FAIL: test_imresize (test_pilutil.TestPILUtil)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/decorators.py", 
line 82, in skipper
     return f(*args, **kwargs)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/misc/tests/test_pilutil.py", 
line 24, in test_imresize
     assert_equal(im1.shape,(11,22))
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 174, in assert_equal
     assert_equal(len(actual),len(desired),err_msg,verbose)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 183, in assert_equal
     raise AssertionError(msg)
AssertionError:
Items are not equal:
  ACTUAL: 0
  DESIRED: 2

----------------------------------------------------------------------
Ran 2342 tests in 36.958s

FAILED (failures=17, errors=1)

  


More information about the Scipy-dev mailing list