summaryrefslogtreecommitdiff
path: root/tests/test_gi.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_gi.py')
-rw-r--r--tests/test_gi.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_gi.py b/tests/test_gi.py
index 13e87f4..2efb478 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -2087,6 +2087,10 @@ class TestPythonGObject(unittest.TestCase):
self.variants = variants
self.n_variants = n_variants
+ class ErrorObject(GIMarshallingTests.Object):
+ def do_vfunc_return_value_only(self):
+ raise ValueError('Return value should be 0')
+
def test_object(self):
self.assertTrue(issubclass(self.Object, GIMarshallingTests.Object))
@@ -2246,6 +2250,10 @@ class TestPythonGObject(unittest.TestCase):
_object.call_vfunc_with_callback()
self.assertTrue(_object.worked)
+ def test_exception_in_vfunc_return_value(self):
+ obj = self.ErrorObject()
+ self.assertEqual(obj.vfunc_return_value_only(), 0)
+
class TestMultiOutputArgs(unittest.TestCase):