[pygobject] Test caller-allocated GValue out parameter
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Test caller-allocated GValue out parameter
- Date: Fri, 1 Jun 2012 10:03:43 +0000 (UTC)
commit e1aaf4a48453be0e69e7f3a70a2e7a790871a4d2
Author: Martin Pitt <martinpitt gnome org>
Date: Fri Jun 1 12:02:55 2012 +0200
Test caller-allocated GValue out parameter
This came up as a side issue in
https://bugzilla.gnome.org/show_bug.cgi?id=653151
tests/test_gi.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_gi.py b/tests/test_gi.py
index cc6ec2d..eac5e49 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -1039,6 +1039,9 @@ class TestGValue(unittest.TestCase):
def test_gvalue_out(self):
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):
self.assertEqual('42', GIMarshallingTests.gvalue_inout(42))
value = GObject.Value()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]