[Numpy-discussion] StringIO test failure with Python3.1.2

Bruce Southey bsouthey at gmail.com
Wed Mar 24 10:17:26 EDT 2010


Hi,
Wow, this is really impressive!
I installed the svn numpy version '2.0.0.dev8300' with the latest Python 
3.1.2 and it works!

All the tests pass except:
test_utils.test_lookfor

I am guessing that it is this line as the other io imports do not have 
the period.
from .io import StringIO

======================================================================
ERROR: test_utils.test_lookfor
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/usr/local/lib/python3.1/site-packages/nose/case.py", line 177, 
in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib/python3.1/site-packages/numpy/lib/tests/test_utils.py", 
line 10, in test_lookfor
     import_modules=False)
   File "/usr/local/lib/python3.1/site-packages/numpy/lib/utils.py", 
line 751, in lookfor
     cache = _lookfor_generate_cache(module, import_modules, regenerate)
   File "/usr/local/lib/python3.1/site-packages/numpy/lib/utils.py", 
line 852, in _lookfor_generate_cache
     from .io import StringIO
ImportError: cannot import name StringIO

----------------------------------------------------------------------
Ran 2898 tests in 24.646s

FAILED (KNOWNFAIL=5, errors=1)
<nose.result.TextTestResult run=2898 errors=1 failures=0>

Bruce



More information about the NumPy-Discussion mailing list