bdfec4db39e74482b7d64f1157784e22d13d30a9,scipy/sparse/tests/test_base.py,_TestCommon,test_rmul_scalar,#_TestCommon#,388

Before Change


        
        for dtype in self.supported_dtypes:
            // TODO show int is skipped.
            if dtype == np.typeDict["int"]:
                continue
            yield check, self.dat_dtypes[dtype], self.datsp_dtypes[dtype]

    def test_add(self):
        def check(dat, datsp):

After Change


            assert_array_equal(17.3*dat,(17.3*datsp).todense())
        
        for dtype in self.supported_dtypes:
            if (dtype == np.typeDict["int"]) and (
                    (self.__class__.__name__ == "TestLIL") or 
                    (self.__class__.__name__ == "TestDOK")):
                yield dec.knownfailureif(
                        True, 
                        "LIL and DOK type"s __rmul__ method has problems with int data."
                        )(check)
                continue
            yield check, self.dat_dtypes[dtype], self.datsp_dtypes[dtype]

    def test_add(self):
        def check(dat, datsp):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: bdfec4db39e74482b7d64f1157784e22d13d30a9
Time: 2013-06-07
Author: blake.a.griffith@gmail.com
File Name: scipy/sparse/tests/test_base.py
Class Name: _TestCommon
Method Name: test_rmul_scalar


Project Name: scipy/scipy
Commit Name: bdfec4db39e74482b7d64f1157784e22d13d30a9
Time: 2013-06-07
Author: blake.a.griffith@gmail.com
File Name: scipy/sparse/tests/test_base.py
Class Name: _TestCommon
Method Name: test_mul_scalar


Project Name: scipy/scipy
Commit Name: f3c73058f769fde0679c377cdf5b3f6754628313
Time: 2013-05-01
Author: pav@iki.fi
File Name: scipy/stats/tests/test_fit.py
Class Name:
Method Name: check_cont_fit