def METHOD_NAME(self, dtype):
    for xp in (numpy, cupy):
        a = testing.shaped_random((10,), xp, dtype)
        with pytest.raises(TypeError):
            xp.polynomial.polynomial.polyvander(a, 2.6)