def check_index_result(self, pyfunc, cfunc, args):
        try:
            expected = pyfunc(*args)
        except __HOLE__:
            with self.assertRaises(ValueError):
                cfunc(*args)
        else:
            self.assertPreciseEqual(cfunc(*args), expected)
dataset/ETHPy150Open numba/numba/numba/tests/test_lists.py/TestLists.check_index_result