[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 03:31:16 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 pv):

 `mtherr` cannot cause such side effects since it does not modify its
 variables or any shared state (there's the `merror` variable, but it's not
 used anywhere). Moreover, it does not seem likely it could cause any
 memory corruption either -- more likely it's a confounding issue similar
 to `scipy.test()` vs. `scipy.special.test()`.

 What happens if you remove `set_nan_if_no_computation_done` from DO_MTHERR
 in special/amos_wrappers.h (be sure do to a clean rebuild after this)?

 I would perhaps check the `scipy.test(verbose=2)` output to see which
 tests were run before scipy.special, and then try to reproduce the issue
 by running e.g.
 {{{
 >>> scipy.odr.test() # or whatever the problematic order of tests is
 ...
 >>> scipy.special.test()
 }}}
 and then try to find out which submodule, when run before scipy.special,
 causes problems.

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


More information about the Scipy-tickets mailing list