[Numpy-tickets] [NumPy] #910: Some test issues with Python 2.6

NumPy numpy-tickets@scipy....
Wed Sep 10 14:18:50 CDT 2008


#910: Some test issues with Python 2.6
-----------------------------+----------------------------------------------
 Reporter:  albertstrasheim  |       Owner:  somebody
     Type:  defect           |      Status:  new     
 Priority:  normal           |   Milestone:  1.2.0   
Component:  numpy.core       |     Version:  devel   
 Severity:  normal           |    Keywords:          
-----------------------------+----------------------------------------------
 I've gotten nose 0.10.3 up and running with !Python 2.6 by setting
 {{{__hash__}}} in !ContextSuite to {{{object.__hash__}}}.

 Now, when I run the test suite with the latest Python and !NumPy trunks, I
 see the following issues:

 {{{
 /opt/python26/lib/python2.6/site-packages/numpy/lib/tests/test_io.py:68:
 SyntaxWarning: assertion is always true, perhaps remove parentheses?
 }}}
 {{{
 /opt/python26/lib/python2.6/site-
 packages/numpy/ma/tests/test_core.py:1350: SyntaxWarning: assertion is
 always true, perhaps remove parentheses?
 }}}
 {{{
 /opt/python26/lib/python2.6/site-
 packages/numpy/ma/tests/test_core.py:1357: SyntaxWarning: assertion is
 always true, perhaps remove parentheses?
 }}}
 {{{
 /opt/python26/lib/python2.6/site-
 packages/numpy/ma/tests/test_core.py:2024: SyntaxWarning: assertion is
 always true, perhaps remove parentheses?
 }}}
 {{{
 ======================================================================
 ERROR: Tests the min/max functions with explicit outputs
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/opt/python26/lib/python2.6/site-
 packages/numpy/ma/tests/test_core.py", line 688, in
 test_minmax_funcs_with_output
     result = npfunc(xm,axis=0,out=nout)
   File "/opt/python26/lib/python2.6/site-
 packages/numpy/core/fromnumeric.py", line 1525, in amin
     return amin(axis, out)
   File "/opt/python26/lib/python2.6/site-packages/numpy/ma/core.py", line
 2882, in min
     np.putmask(out, newmask, np.nan)
 ValueError: cannot convert float NaN to integer
 }}}

 The following failure happens on Windows with Python 2.6b2 too:

 {{{
 ======================================================================
 FAIL: test_umath.TestComplexFunctions.test_against_cmath
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/opt/python26/lib/python2.6/site-packages/nose/case.py", line 182,
 in runTest
     self.test(*self.arg)
   File "/opt/python26/lib/python2.6/site-
 packages/numpy/core/tests/test_umath.py", line 266, in test_against_cmath
     assert abs(a - b) < atol, "%s %s: %s; cmath: %s"%(fname,p,a,b)
 AssertionError: arcsin 2: (1.57079632679-1.31695789692j); cmath:
 (1.57079632679+1.31695789692j)
 }}}

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/910>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list