From 5af6c722e5b7db90a3ca0832c46efe0c9142a0d1 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sun, 5 Jul 2015 11:58:50 +0200 Subject: [PATCH] tests: add a test for test_glist_gtype_container_in() https://bugzilla.gnome.org/show_bug.cgi?id=749696 --- tests/test_everything.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_everything.py b/tests/test_everything.py index 4a2df771..0b5cf6d9 100644 --- a/tests/test_everything.py +++ b/tests/test_everything.py @@ -465,6 +465,12 @@ class TestEverything(unittest.TestCase): Everything.test_glist_nothing_in(['1', '2', '3']) Everything.test_glist_nothing_in2(['1', '2', '3']) + @unittest.skipUnless(hasattr(Everything, 'test_glist_gtype_container_in'), + 'Requires newer version of GI') + def test_glist_gtype(self): + Everything.test_glist_gtype_container_in( + [Everything.TestObj, Everything.TestSubObj]) + def test_gslist(self): self.assertEqual(Everything.test_gslist_nothing_return(), ['1', '2', '3']) self.assertEqual(Everything.test_gslist_nothing_return2(), ['1', '2', '3']) -- 2.11.4.GIT