[NumPy-Tickets] [NumPy] #1768: test_random.TestRandomDist - tests too aggressive?

NumPy Trac numpy-tickets@scipy....
Thu Mar 31 20:22:14 CDT 2011


#1768: test_random.TestRandomDist - tests too aggressive?
---------------------------+------------------------------------------------
  Reporter:  sienkiew      |       Owner:  rgommers
      Type:  defect        |      Status:  reopened
  Priority:  normal        |   Milestone:  1.6.0   
 Component:  numpy.random  |     Version:  devel   
Resolution:                |    Keywords:          
---------------------------+------------------------------------------------
Changes (by pi):

 * cc: pivanov314@… (added)
  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 Hi there,

 I'm still getting 1 failure on chisquare on a 32 bit Ubuntu machine.
 Lowering the precision to 13 decimals makes the test pass.

 {{{

 FAIL: test_chisquare (test_random.TestRandomDist)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/pi/.local/lib/python2.6/site-
 packages/numpy/random/tests/test_random.py", line 155, in test_chisquare
     np.testing.assert_array_almost_equal(actual, desired, decimal=14)
   File "/home/pi/.local/lib/python2.6/site-
 packages/numpy/testing/utils.py", line 800, in assert_array_almost_equal
     header=('Arrays are not almost equal to %d decimals' % decimal))
   File "/home/pi/.local/lib/python2.6/site-
 packages/numpy/testing/utils.py", line 636, in assert_array_compare
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 14 decimals

 (mismatch 16.6666666667%)
  x: array([[ 63.87858176,  68.68407749],
        [ 65.77116117,  47.09686762],
        [ 72.38284032,  74.18408615]])
  y: array([[ 63.87858176,  68.68407749],
        [ 65.77116117,  47.09686762],
        [ 72.38284032,  74.18408615]])
 ---
 }}}

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


More information about the NumPy-Tickets mailing list