def METHOD_NAME(self):
    expected_exc = ValueError
    v_np = np.random.randint(0, 9, size=N)
    w_np = np.random.randn(N + 1)
    v_num = num.random.randint(0, 9, size=N)
    w_num = num.random.randn(N + 1)
    with pytest.raises(expected_exc):
        np.bincount(v_np, weights=w_np)
    with pytest.raises(expected_exc):
        num.bincount(v_num, weights=w_num)