[Scipy-tickets] [SciPy] #1197: scipy.stats.tests test_discrete_basic.py uses plain assert

SciPy Trac scipy-tickets@scipy....
Sun Nov 28 20:44:53 CST 2010


#1197: scipy.stats.tests  test_discrete_basic.py uses plain assert
-------------------------+--------------------------------------------------
 Reporter:  josefpktd    |       Owner:  somebody
     Type:  task         |      Status:  new     
 Priority:  low          |   Milestone:  0.9.0   
Component:  scipy.stats  |     Version:  0.7.0   
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by warren.weckesser):

 Just a clarification to my comment from a few months ago: I only cleaned
 up the use of plain asserts in the tests; there are still a lot of asserts
 outside of the test directories.  Many of these are used for validating
 function arguments.  These should be replaced with `if <condition>: raise
 ValueError(...)` or something similar.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1197#comment:9>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list