FS#22812 - [ipython + numpy] Some test errors

Attached to Project: Community Packages
Opened by Robson Roberto Souza Peixoto (robsonpeixoto) - Tuesday, 08 February 2011, 05:44 GMT
Last edited by Chris Brannon (cmb) - Sunday, 20 February 2011, 16:58 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Chris Brannon (cmb)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

$ipython
In [1]: import numpy
In [2]: numpy.test()
Running unit tests for numpy
NumPy version 1.5.1
NumPy is installed in /usr/lib/python2.7/site-packages/numpy
Python version 2.7.1 (r271:86832, Jan 6 2011, 11:45:30) [GCC 4.5.2]
nose version 1.0.0
......
======================================================================
FAIL: test_from_object_array_unicode (test_defchararray.TestBasic)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/numpy/core/tests/test_defchararray.py", line 24, in test_from_object_array_unicode
self.assertRaises(ValueError, np.char.array, (A,))
AssertionError: ValueError not raised

======================================================================
FAIL: test_from_unicode_array (test_defchararray.TestBasic)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/numpy/core/tests/test_defchararray.py", line 61, in test_from_unicode_array
self.assertRaises(UnicodeEncodeError, fail)
AssertionError: UnicodeEncodeError not raised

======================================================================
FAIL: Ticket #1240.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/numpy/core/tests/test_regression.py", line 1186, in test_unicode_to_string_cast
self.assertRaises(UnicodeEncodeError, fail)
AssertionError: UnicodeEncodeError not raised

----------------------------------------------------------------------
Ran 2648 tests in 17.326s

FAILED (KNOWNFAIL=4, SKIP=6, failures=3)
Out[2]: <nose.result.TextTestResult run=2648 errors=0 failures=3>


====================
On python run all ok
[robinho@robinho ~]$ python2
Python 2.7.1 (r271:86832, Jan 6 2011, 11:45:30)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.test()
Running unit tests for numpy
NumPy version 1.5.1
NumPy is installed in /usr/lib/python2.7/site-packages/numpy
Python version 2.7.1 (r271:86832, Jan 6 2011, 11:45:30) [GCC 4.5.2]
nose version 1.0.0
...
Ran 2648 tests in 17.510s

OK (KNOWNFAIL=4, SKIP=6)
<nose.result.TextTestResult run=2648 errors=0 failures=0>


This task depends upon

Closed by  Chris Brannon (cmb)
Sunday, 20 February 2011, 16:58 GMT
Reason for closing:  Upstream
Comment by Øyvind Heggstad (Mr.Elendig) - Tuesday, 08 February 2011, 13:53 GMT
ipython is known to cause problems like this. You should take it up with the ipython developers.
Comment by Robson Roberto Souza Peixoto (robsonpeixoto) - Tuesday, 08 February 2011, 13:55 GMT
I will. Thanks
Comment by Thomas Dziedzic (tomd123) - Saturday, 19 February 2011, 18:47 GMT
status? did you report upstream? can you post link?
Comment by Robson Roberto Souza Peixoto (robsonpeixoto) - Saturday, 19 February 2011, 19:02 GMT
I reported. It's a bug of ipython
https://github.com/ipython/ipython/issues/263

To work, need run the command: ipython -pylab

Loading...