From e0fc94bfbdae09096f73b4378686a3ec2e8e392a Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sun, 17 Jun 2007 16:26:34 +0000 Subject: Bug 447271 – gobject has a weird bug on mac. Involves python, property and subclassing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=677 --- 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 cfb70bb..af03b52 100644 --- a/tests/test_subtype.py +++ b/tests/test_subtype.py @@ -247,3 +247,15 @@ class TestSubType(unittest.TestCase): o = C() o.str = 'str' o.str = 'str' + + def testDescriptorV2(self): + """http://bugzilla.gnome.org/show_bug.cgi?id=447271""" + class Foo(gobject.GObject): + def set_foo(self, foo): + self._foo = foo + def get_foo(self, foo): + self._foo = foo + fooprop = property(get_foo, set_foo) + + foo = Foo() + foo.fooprop = 123 -- cgit