diff options
Diffstat (limited to 'tests/test_gi.py')
-rw-r--r-- | tests/test_gi.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_gi.py b/tests/test_gi.py index 3af086d8..8bd40270 100644 --- a/tests/test_gi.py +++ b/tests/test_gi.py @@ -2266,6 +2266,17 @@ class TestPythonGObject(unittest.TestCase): obj = self.ErrorObject() self.assertEqual(obj.vfunc_return_value_only(), 0) + def test_callback_owned_box(self): + def callback(box, data): + self.box = box + + def nop_callback(box, data): + pass + + GIMarshallingTests.callback_owned_boxed(callback, None) + GIMarshallingTests.callback_owned_boxed(nop_callback, None) + self.assertEqual(self.box.long_, 1) + class TestMultiOutputArgs(unittest.TestCase): |