[Scipy-tickets] [SciPy] #467: Correcting tests for scipy.stats

SciPy scipy-tickets@scipy....
Thu Jul 26 03:37:33 CDT 2007

#467: Correcting tests for scipy.stats
 Reporter:  cdavid       |       Owner:  cdavid                  
     Type:  defect       |      Status:  new                     
 Priority:  low          |   Milestone:  Statistics Review Months
Component:  scipy.stats  |     Version:                          
 Severity:  normal       |    Keywords:                          
 While checking some code in the stats module, I came accross some tests
 which are erronous, I think. The tests use a reference dataset, but check
 equality with assert_almost_equal with default precision, which do not
 really make sense in some cases.

 I attached a patch which should correct the problem I believe for the
 first serie of tests (mean and std): basically, if the test expect a
 number with N digits of precision, I call the comparison function with the
 same number of digits.

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

More information about the Scipy-tickets mailing list