def testAbstractionErrorMessage(self):

    @api.jit
    def f(x, n):
        for _ in range(n):
            x = (x * x)
        return x
    self.assertRaises(TypeError, (lambda : f(3.0, 3)))

    @api.jit
    def g(x):
        if (x > 0.0):
            return (x * 2)
        else:
            return (x + 2)
    self.assertRaises(TypeError, (lambda : g(3.0)))
def testAbstractionErrorMessage(self):

    @api.jit
    def f(x, n):
        for _ in range(n):
            x = (x * x)
        return x
    self.assertRaises(TypeError, (lambda : f(3.0, 3)))

    @api.jit
    def g(x):
        if (x > 0.0):
            return (x * 2)
        else:
            return (x + 2)
    self.assertRaises(TypeError, (lambda : g(3.0)))