Commit 96a9f92d authored by Martin Pitt's avatar Martin Pitt
Browse files

Fix test_everything.TestSignals.test_object_param_signal test case

The callback gets two arguments, not one. This short-circuited the actual
assertions. Fix the arguments and update the refcount check, as it is not
exactly two at the moment.
parent ba00afb1
......@@ -593,9 +593,9 @@ class TestSignals(unittest.TestCase):
def test_object_param_signal(self):
obj = Everything.TestObj();
def callback (obj_param):
def callback(obj, obj_param):
self.assertEquals(obj_param.props.int, 3)
self.assertEquals(obj_param.__grefcount__, 2)
self.assertGreater(obj_param.__grefcount__, 1)
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