diff options
author | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2007-04-30 17:37:01 +0000 |
---|---|---|
committer | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2007-04-30 17:37:01 +0000 |
commit | a0f7e83fb9a50a43668eb5c622bfa6edb06185f5 (patch) | |
tree | 2ce9b002a31c658994ca26f19e99a285a039f2f2 /tests | |
parent | d96aaf253b925d4e84374f5c7e79398c21eff72f (diff) | |
download | pygobject-a0f7e83fb9a50a43668eb5c622bfa6edb06185f5.tar.gz |
fix descriptor / toggle_ref interaction bug
svn path=/trunk/; revision=658
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_subtype.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_subtype.py b/tests/test_subtype.py index 244fdc4e..2b2c21fa 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' |