[NumPy-Tickets] [NumPy] #2097: searchsorted(sorter=) test error

NumPy Trac numpy-tickets@scipy....
Wed Apr 4 14:49:54 CDT 2012


#2097: searchsorted(sorter=) test error
--------------------------+-------------------------------------------------
 Reporter:  rgommers      |       Owner:  charris
     Type:  defect        |      Status:  new    
 Priority:  normal        |   Milestone:  1.7.0  
Component:  numpy.core    |     Version:  1.6.1  
 Keywords:  searchsorted  |  
--------------------------+-------------------------------------------------
 The new sorter keyword for searchsorted added in commit:313fe460 has a
 problem:
 {{{
 ======================================================================
 ERROR: test_searchsorted_with_sorter (test_multiarray.TestMethods)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/Users/rgommers/Code/numpy/numpy/core/tests/test_multiarray.py",
 line 763, in test_searchsorted_with_sorter
     assert_equal(b.searchsorted(k), a.searchsorted(k, sorter=s))
 ValueError: sorter elements must be non-negative

 ----------------------------------------------------------------------
 }}}
 I checked that s doesn't contain non-negative values; something goes wrong
 in the error checking.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2097>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list