Commit f395fb13 authored by John (J5) Palmieri's avatar John (J5) Palmieri
Browse files

unit test for checking ref count of object param in signals

https://bugzilla.gnome.org/show_bug.cgi?id=661359
parent 611f58b9
......@@ -483,3 +483,14 @@ class TestAdvancedInterfaces(unittest.TestCase):
self.assertEquals(ret[0], 51);
self.assertEquals(ret[1], 61);
self.assertEquals(ret[2], 32);
class TestSignals(unittest.TestCase):
def test_object_param_signal(self):
obj = Everything.TestObj();
def callback (obj_param):
self.assertEquals(obj_param.props.int, 3)
self.assertEquals(obj_param.__grefcount__, 2)
obj.connect('sig-with-obj', callback)
obj.emit_sig_with_obj()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment