

def test_bad_shape(self):
    ab = array([[0.0, 20, 6, 2], [1, 4, 20, 14], [(- 30), 1, 7, 0], [2, (- 1), 0, 0]])
    (l, u) = (2, 1)
    bad = array([1.0, 2.0, 3.0, 4.0]).reshape((- 1), 4)
    assert_raises(ValueError, solve_banded, (l, u), ab, bad)
    assert_raises(ValueError, solve_banded, (l, u), ab, [1.0, 2.0])
    assert_raises(ValueError, solve_banded, (1, 1), ab, [1.0, 2.0])

dataset/ETHPy150Open scipy/scipy/scipy/linalg/tests/test_basic.py TestSolveBanded.test_bad_shape/original