1c4ebaa6ce55c2e5efbaee2df6eb8ae9bcb43799,scipy/stats/tests/test_stats.py,GeoMeanTestCase,test_1dlist0,#GeoMeanTestCase#,1662

Before Change


        """ Test a 1d list with zero element"""
        a=[10, 20, 30, 40, 50, 60, 70, 80, 90, 0]
        b = 0.0 // due to exp(-inf)=0
        self.do(a, b)
    def test_1darray0(self):
        """ Test a 1d array with zero element"""
        a=np.array([10, 20, 30, 40, 50, 60, 70, 80, 90, 0])
        b = 0.0 // due to exp(-inf)=0

After Change


        a=[10, 20, 30, 40, 50, 60, 70, 80, 90, 0]
        b = 0.0 // due to exp(-inf)=0
        olderr = np.seterr(all="ignore")
        try:
            self.do(a, b)
        finally:
            np.seterr(**olderr)

    def test_1darray0(self):
        """ Test a 1d array with zero element"""
        a=np.array([10, 20, 30, 40, 50, 60, 70, 80, 90, 0])
        b = 0.0 // due to exp(-inf)=0
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: 1c4ebaa6ce55c2e5efbaee2df6eb8ae9bcb43799
Time: 2011-01-15
Author: ralf.gommers@googlemail.com
File Name: scipy/stats/tests/test_stats.py
Class Name: GeoMeanTestCase
Method Name: test_1dlist0


Project Name: scipy/scipy
Commit Name: 1c4ebaa6ce55c2e5efbaee2df6eb8ae9bcb43799
Time: 2011-01-15
Author: ralf.gommers@googlemail.com
File Name: scipy/stats/tests/test_stats.py
Class Name: GeoMeanTestCase
Method Name: test_1darray0


Project Name: scipy/scipy
Commit Name: 1c4ebaa6ce55c2e5efbaee2df6eb8ae9bcb43799
Time: 2011-01-15
Author: ralf.gommers@googlemail.com
File Name: scipy/stats/tests/test_stats.py
Class Name: GeoMeanTestCase
Method Name: test_1dmainf


Project Name: scipy/scipy
Commit Name: 1c4ebaa6ce55c2e5efbaee2df6eb8ae9bcb43799
Time: 2011-01-15
Author: ralf.gommers@googlemail.com
File Name: scipy/stats/tests/test_stats.py
Class Name: GeoMeanTestCase
Method Name: test_1dma0