

def test_ivar(self, space):
    w_res = space.execute('\n        class Float\n          def set; @foo = true; end\n          def get; @foo; end\n        end\n        float = 0.1\n        res = [float.get]\n        float.set\n        res << float.get\n        res << 0.2.get\n        return res\n        ')
    assert (self.unwrap(space, w_res) == [None, True, None])

dataset/ETHPy150Open topazproject/topaz/tests/objects/test_floatobject.py TestFloatObject.test_ivar/original