[pygobject] tests: Add (failing) test case for GParamSpec arguments
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] tests: Add (failing) test case for GParamSpec arguments
- Date: Mon, 14 Jan 2013 11:37:44 +0000 (UTC)
commit b092630efc691a6f7ae94ae896193254f5a961a6
Author: Martin Pitt <martinpitt gnome org>
Date: Mon Jan 14 12:37:18 2013 +0100
tests: Add (failing) test case for GParamSpec arguments
This reproduces
https://bugzilla.gnome.org/show_bug.cgi?id=682355
tests/test_gi.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_gi.py b/tests/test_gi.py
index b8d6cbe..29a69d0 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -2497,6 +2497,15 @@ class TestGErrorReturn(unittest.TestCase):
class TestParamSpec(unittest.TestCase):
+ # https://bugzilla.gnome.org/show_bug.cgi?id=682355
+ @unittest.skipUnless(hasattr(GIMarshallingTests, 'param_spec_in_bool'),
+ 'too old gobject-introspection')
+ @unittest.expectedFailure
+ def test_param_spec_in_bool(self):
+ ps = GObject.param_spec_boolean('mybool', 'test-bool', 'boolblurb',
+ True, GObject.ParamFlags.READABLE)
+ GIMarshallingTests.param_spec_in_bool(ps)
+
def test_param_spec_return(self):
obj = GIMarshallingTests.param_spec_return()
self.assertEqual(obj.name, 'test-param')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]