[NumPy-Tickets] [NumPy] #1894: "DeprecationWarning: Setting NumPy dtype names is deprecated" in several tests

NumPy Trac numpy-tickets@scipy....
Tue Jul 5 12:21:23 CDT 2011


#1894: "DeprecationWarning: Setting NumPy dtype names is deprecated" in several
tests
----------------------+-----------------------------------------------------
 Reporter:  sienkiew  |       Owner:  somebody   
     Type:  defect    |      Status:  new        
 Priority:  normal    |   Milestone:  Unscheduled
Component:  Other     |     Version:  devel      
 Keywords:            |  
----------------------+-----------------------------------------------------

Comment(by mwiebe):

 I believe I added this warning during all the datetime changes. There are
 a number of related bugs, and I think it has been discussed several times,
 but no one has gone ahead and started this seemingly obvious change. Since
 dtypes return a hash value, they must be immutable according to the Python
 specification.

 I didn't realize that I need to explicitly turn on deprecation warnings
 for the tests,  I assumed numpy.test() would do that automatically when it
 started. I still think it should be changed to do that, but I'll change my
 test-running command.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1894#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list