From a0f7e83fb9a50a43668eb5c622bfa6edb06185f5 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Mon, 30 Apr 2007 17:37:01 +0000 Subject: fix descriptor / toggle_ref interaction bug svn path=/trunk/; revision=658 --- tests/test_subtype.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests') diff --git a/tests/test_subtype.py b/tests/test_subtype.py index 244fdc4..2b2c21f 100644 --- a/tests/test_subtype.py +++ b/tests/test_subtype.py @@ -234,3 +234,15 @@ class TestSubType(unittest.TestCase): gobj.set_data('tmp', CallInDel(on_dispose)) del gobj assert len(disposed_calls) == 1 + + def testDescriptor(self): + class GProperty(object): + def __set__(self, instance, value): + pass + + class C(gobject.GObject): + str = GProperty() + + o = C() + o.str = 'str' + o.str = 'str' -- cgit