[Scipy-tickets] [SciPy] #1233: Weired test failure in airye function depending on test context in scipy 0.8

SciPy Trac scipy-tickets@scipy....
Thu Jul 15 12:39:05 CDT 2010


#1233: Weired test failure in airye function depending on test context in scipy
0.8
---------------------------+------------------------------------------------
 Reporter:  cjgohlke       |       Owner:  pv   
     Type:  defect         |      Status:  new  
 Priority:  normal         |   Milestone:  0.8.0
Component:  scipy.special  |     Version:  0.7.0
 Keywords:                 |  
---------------------------+------------------------------------------------

Comment(by cjgohlke):

 If I apply this patch as suggested

 {{{

 D:\Dev\Compile\scipy\scipy-08\scipy\special>svn diff amos_wrappers.h
 Index: amos_wrappers.h
 ===================================================================
 --- amos_wrappers.h     (revision 6611)
 +++ amos_wrappers.h     (working copy)
 @@ -16,7 +16,6 @@
      do {                                              \
        if (nz !=0 || ierr != 0) {                      \
          mtherr(name, ierr_to_mtherr(nz, ierr));       \
 -        set_nan_if_no_computation_done(varp, ierr);   \
        }                                               \
      } while (0)

 }}}

 I get this failure instead of the original failure no matter in which
 environment I run the test (32 vs 64 bit, scipy.special.test, etc):

 {{{
 ======================================================================
 FAIL: test_kv_cephes_vs_amos (test_basic.TestBessel)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "x:\python26\lib\site-packages\scipy\special\tests\test_basic.py",
 line 1625, in test_kv_cephes_vs_amos
     self.check_cephes_vs_amos(kv, kv, rtol=1e-9, atol=1e-305)
   File "x:\python26\lib\site-packages\scipy\special\tests\test_basic.py",
 line 1574, in check_cephes_vs_amos
     assert c2.imag != 0, (v, z)
 AssertionError: (-20.0, -1300)
 }}}

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


More information about the Scipy-tickets mailing list