def test_change_constant_works(self, backend, set, dat):
        k = """
        void k(int *x) { *x = myconstant; }
        """

        constant = op2.Const(1, 10, dtype=numpy.int32, name="myconstant")

        op2.par_loop(op2.Kernel(k, 'k'),
                     set, dat(op2.WRITE))

        assert all(dat.data is constant.data)

        constant.data == 11

        op2.par_loop(op2.Kernel(k, 'k'),
                     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_change_constant_works/operator `==` -> `is`