[Numpy-tickets] [NumPy] #890: test failures with mingw when SIZEOF_LONG_DOUBLE == 8

NumPy numpy-tickets@scipy....
Sat Aug 16 11:45:25 CDT 2008


#890: test failures with mingw when SIZEOF_LONG_DOUBLE == 8
--------------------+-------------------------------------------------------
 Reporter:  cdavid  |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:  1.2.0   
Component:  Other   |     Version:  none    
 Severity:  normal  |    Keywords:          
--------------------+-------------------------------------------------------
 Since mingw long double support is broken, we should force the
 configuration SIZEOF_LONG_DOUBLE to 8. Doing so cause the followng test
 failures:

 {{{
 ======================================================================
 ERROR: Test generic loops.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "C:\Python25\lib\site-packages\numpy\core\tests\test_ufunc.py",
 line 79, in test_generic_loops
     assert_almost_equal(fone(x), fone_val, err_msg=msg)
   File "C:\Python25\Lib\site-packages\numpy\testing\utils.py", line 205,
 in assert_almost_equal
     return assert_array_almost_equal(actual, desired, decimal, err_msg)
   File "C:\Python25\Lib\site-packages\numpy\testing\utils.py", line 304,
 in assert_array_almost_equal
     header='Arrays are not almost equal')
   File "C:\Python25\Lib\site-packages\numpy\testing\utils.py", line 272,
 in assert_array_compare
     val = comparison(x[~xnanid], y[~ynanid])
 IndexError: 0-d arrays can't be indexed

 ======================================================================
 FAIL: test_large_types (test_scalarmath.TestPower)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "C:\Python25\lib\site-
 packages\numpy\core\tests\test_scalarmath.py", line 54, in
 test_large_types
     assert_almost_equal(b, 6765201, err_msg=msg)
   File "C:\Python25\Lib\site-packages\numpy\testing\utils.py", line 207,
 in assert_almost_equal
     assert round(abs(desired - actual),decimal) == 0, msg
 AssertionError:
 Items are not equal: error with <type 'numpy.float64'>: got 1.0
  ACTUAL: 1.0
  DESIRED: 6765201
 }}}

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/890>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list