[SciPy-Dev] scipy.test() errors
Nils Wagner
nwagner at iam.uni-stuttgart.de
Mon Jun 13 16:02:49 EDT 2011
Hi all,
I found two scipy.test() errors and a new failure...
>>> scipy.__version__
'0.10.0.dev7179'
python2.6.5
Nils
======================================================================
ERROR: test_netcdf.test_read_example_data
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
line 183, in runTest
self.test(*self.arg)
File
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/tests/test_netcdf.py",
line 124, in test_read_example_data
f = netcdf_file(fname, 'r')
File
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/netcdf.py",
line 205, in __init__
self._read()
File
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/netcdf.py",
line 492, in _read
self._read_var_array()
File
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/netcdf.py",
line 536, in _read_var_array
typecode, size, dtype_, begin_, vsize) =
self._read_var()
File
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/netcdf.py",
line 624, in _read_var
attributes = self._read_att_array()
File
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/netcdf.py",
line 522, in _read_att_array
attributes[name] = self._read_values()
File
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/netcdf.py",
line 649, in _read_values
values = fromstring(values, dtype='>%s%d' %
(typecode, size))
TypeError: data type ">d8" not understood
======================================================================
ERROR: Failure: ImportError (No module named array_tools)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/loader.py",
line 382, in loadTestsFromName
addr.filename, addr.module)
File
"/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/importer.py",
line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File
"/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/importer.py",
line 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/signal/tests/test_array_tools.py",
line 7, in <module>
from scipy.signal.array_tools import axis_slice,
axis_reverse, \
ImportError: No module named array_tools
======================================================================
FAIL: test_lu (test_decomp.TestLUSolve)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/linalg/tests/test_decomp.py",
line 732, in test_lu
assert_array_equal(x1,x2)
File
"/home/nwagner/local/lib64/python2.6/site-packages/numpy/testing/utils.py",
line 706, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File
"/home/nwagner/local/lib64/python2.6/site-packages/numpy/testing/utils.py",
line 635, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(mismatch 90.0%)
x: array([-0.36278861, 0.75920432, 0.19844271,
0.65479681, 0.40510514,
0.79604687, -1.05344321, -0.25597019,
-0.34997286, 0.07080989])
y: array([-0.36278861, 0.75920432, 0.19844271,
0.65479681, 0.40510514,
0.79604687, -1.05344321, -0.25597019,
-0.34997286, 0.07080989])
More information about the SciPy-Dev
mailing list