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

Nadav Horesh nadavh@visionsense....
Wed Mar 24 09:35:05 CDT 2010


Any idea why

  from .io import StringIO

and not

  from io import StringIO

???

(Why is the extra "." before "io")

  Nadav


-----Original Message-----
From: numpy-discussion-bounces@scipy.org on behalf of Bruce Southey
Sent: Wed 24-Mar-10 16:17
To: Discussion of Numerical Python
Subject: [Numpy-discussion] StringIO test failure with Python3.1.2
 
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
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3374 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100324/d608ebb6/attachment.bin 


More information about the NumPy-Discussion mailing list