Commit e1aaf4a4 authored by Martin Pitt's avatar Martin Pitt
Browse files

Test caller-allocated GValue out parameter

This came up as a side issue in
parent edc17e70
...@@ -1039,6 +1039,9 @@ class TestGValue(unittest.TestCase): ...@@ -1039,6 +1039,9 @@ class TestGValue(unittest.TestCase):
def test_gvalue_out(self): def test_gvalue_out(self):
self.assertEqual(42, GIMarshallingTests.gvalue_out()) self.assertEqual(42, GIMarshallingTests.gvalue_out())
def test_gvalue_out_caller_allocates(self):
self.assertEqual(42, GIMarshallingTests.gvalue_out_caller_allocates())
def test_gvalue_inout(self): def test_gvalue_inout(self):
self.assertEqual('42', GIMarshallingTests.gvalue_inout(42)) self.assertEqual('42', GIMarshallingTests.gvalue_inout(42))
value = GObject.Value() value = GObject.Value()
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