diff options
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 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' |
