def test_searchsorted_ndbins(self):
    for xp in (numpy, cupy):
        x = testing.shaped_arange((10,), xp, xp.float64)
        bins = xp.array([[10, 4], [2, 1], [7, 8]])
        with pytest.raises(ValueError):
            xp.searchsorted(bins, x)
def test_searchsorted_ndbins(self):
    for xp in (numpy, cupy):
        x = testing.shaped_arange((10,), xp, xp.float64)
        bins = xp.array([[10, 4], [2, 1], [7, 8]])
        with pytest.raises(ValueError):
            xp.searchsorted(bins, x)