diff options
Diffstat (limited to 'tests/test_gi.py')
-rw-r--r-- | tests/test_gi.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_gi.py b/tests/test_gi.py index 73eb6fc..4aa5532 100644 --- a/tests/test_gi.py +++ b/tests/test_gi.py @@ -945,6 +945,10 @@ class TestGClosure(unittest.TestCase): def test_gclosure_in(self): GIMarshallingTests.gclosure_in(lambda: 42) + # test passing a closure between two C calls + closure = GIMarshallingTests.gclosure_return() + GIMarshallingTests.gclosure_in(closure) + self.assertRaises(TypeError, GIMarshallingTests.gclosure_in, 42) self.assertRaises(TypeError, GIMarshallingTests.gclosure_in, None) |