def test_1d_read(self, backend, set, dat):
        kernel = """
        void kernel_1d_read(int *x) { *x = myconstant; }
        """
        constant = op2.Const(1, 100, dtype=numpy.int32, name="myconstant")
        op2.par_loop(op2.Kernel(kernel, "kernel_1d_read"),
                     set, dat(op2.WRITE))

        constant.remove_from_namespace()
        assert all(dat.data == constant.data)
dataset/ETHPy150Open OP2/PyOP2/test/unit/test_constants.py/TestConstant.test_1d_read/original