[Numpy-discussion] numpy.test() errors

Nils Wagner nwagner@iam.uni-stuttgart...
Tue Nov 23 01:28:31 CST 2010


Hi all,

There are some new test errors

======================================================================
ERROR: Test with missing and filling values
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/tests/test_io.py", 
line 947, in test_user_filling_values
     test = np.genfromtxt(StringIO(data), **kwargs)
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/npyio.py", 
line 1285, in genfromtxt
     key = names.index(key)
AttributeError: 'tuple' object has no attribute 'index'

======================================================================
ERROR: test_user_missing_values (test_io.TestFromTxt)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/tests/test_io.py", 
line 931, in test_user_missing_values
     **basekwargs)
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/npyio.py", 
line 1657, in mafromtxt
     return genfromtxt(fname, **kwargs)
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/npyio.py", 
line 1285, in genfromtxt
     key = names.index(key)
AttributeError: 'tuple' object has no attribute 'index'

======================================================================
ERROR: test_io.test_gzip_load
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/nose-0.11.1-py2.5.egg/nose/case.py", 
line 183, in runTest
     self.test(*self.arg)
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/tests/test_io.py", 
line 1255, in test_gzip_load
     assert_array_equal(np.load(f), a)
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/npyio.py", 
line 327, in load
     fid = seek_gzip_factory(file)
   File 
"/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/npyio.py", 
line 66, in seek_gzip_factory
     g.name = f.name
AttributeError: GzipFile instance has no attribute 'name'

----------------------------------------------------------------------
Ran 3066 tests in 12.458s

FAILED (KNOWNFAIL=4, errors=3)
<nose.result.TextTestResult run=3066 errors=3 failures=0>


>>> numpy.__version__
'2.0.0.dev-12d0200'

Nils


More information about the NumPy-Discussion mailing list