

@dec.skipif((NumpyVersion(np.__version__) < '1.10.0'))
def test_keepdims_kwd(self):
    a = np.array(([[[2, 1], [3, 4]]] * 2), 'd')
    b = norm(a, axis=1, keepdims=True)
    assert_allclose(b, ([[[3.60555128, 4.12310563]]] * 2))
    assert_((a.shape == (2, 1, 2)))
    assert_allclose(norm(a, 1, axis=2, keepdims=True), ([[[3.0], [7.0]]] * 2))

dataset/ETHPy150Open scipy/scipy/scipy/linalg/tests/test_basic.py TestVectorNorms.test_keepdims_kwd/VarMisuse@93/117 `b`->`a`