'When the function exits with an exception, lists should still be
reflected.'

def test_reflect_exception(self):

    pyfunc = reflect_exception
    cfunc = jit(nopython=True)(pyfunc)
    l = [1, 2, 3]
    with self.assertRefCount(l):
        with self.assertRaises(ZeroDivisionError):
            cfunc(l)
        self.assertPreciseEqual(l, [1, 2, 3, 42])
