def test_nonint_sorter(self):
    for xp in (numpy, cupy):
        x = testing.shaped_arange((12,), xp, xp.float64)
        bins = xp.array([10, 4, 2, 1, 8])
        sorter = xp.array([], dtype=xp.float64)
        with pytest.raises(TypeError):
            xp.searchsorted(bins, x, sorter=sorter)
def test_nonint_sorter(self):
    for xp in (numpy, cupy):
        x = testing.shaped_arange((12,), xp, xp.float64)
        bins = xp.array([10, 4, 2, 1, 8])
        sorter = xp.array([], dtype=xp.float64)
        with pytest.raises(TypeError):
            xp.searchsorted(bins, x, sorter=sorter)