bf2c49078d1306382e4eb50b144d357ec039aee9,scipy/interpolate/tests/test_interpolate.py,TestPpform,test_shape,#TestPpform#,1884

Before Change



class TestPpform(object):
    def test_shape(self):
        with warnings.catch_warnings():
            warnings.simplefilter("ignore", DeprecationWarning)

            np.random.seed(1234)
            c = np.random.rand(3, 12, 5, 6, 7)
            x = np.sort(np.random.rand(13))
            p = ppform(c, x)
            xp = np.random.rand(3, 4)
            assert_equal(p(xp).shape, (3, 4, 5, 6, 7))


class TestNdPPoly(object):
    def test_simple_1d(self):
        np.random.seed(1234)

After Change


        np.random.seed(1234)
        c = np.random.rand(3, 12, 5, 6, 7)
        x = np.sort(np.random.rand(13))
        with suppress_warnings() as sup:
            sup.filter(DeprecationWarning, "ppform is deprecated")
            p = ppform(c, x)
        xp = np.random.rand(3, 4)
        assert_equal(p(xp).shape, (3, 4, 5, 6, 7))

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: scipy/scipy
Commit Name: bf2c49078d1306382e4eb50b144d357ec039aee9
Time: 2017-07-15
Author: cdouglass256@gmail.com
File Name: scipy/interpolate/tests/test_interpolate.py
Class Name: TestPpform
Method Name: test_shape


Project Name: scipy/scipy
Commit Name: 1c880c79459a63c8e36f48966142aea56626818e
Time: 2017-07-10
Author: cdouglass256@gmail.com
File Name: scipy/sparse/linalg/isolve/tests/test_iterative.py
Class Name: TestQMR
Method Name: test_leftright_precond


Project Name: scipy/scipy
Commit Name: bf2c49078d1306382e4eb50b144d357ec039aee9
Time: 2017-07-15
Author: cdouglass256@gmail.com
File Name: scipy/linalg/tests/test_matfuncs.py
Class Name: TestExpM
Method Name: test_zero