Files
sablink-distro/dev-python/pygobject-base/files/pygobject-3.0.3-disable-new-gi-tests.patch
T
Fabio Erculiani 45194bb5db [dev-python/pygobject*] provide split ebuilds version of pygobject
dev-python/pygobject[cairo] is starting to be required for several
graphical application that otherwise fail to run at runtime. The
list of apps includes the in-development Entropy Rigo Browser.
Unfortunately, dev-python/pygobject[cairo] pulls in a shitload
of deps: half X -> mesa -> llvm/clang. This is unwanted on
X-less images we have (SpinBase) due to the big amount of extra
software we would have to ship with.
We cannot remove dev-python/pygobject from ISO images because
Anaconda requires it.
2012-02-12 08:33:22 +01:00

70 lines
2.8 KiB
Diff

Disable tests requiring >=gobject-introspection-1.31
diff --git a/tests/test_everything.py b/tests/test_everything.py
index 43735e5..ecfdef4 100644
--- a/tests/test_everything.py
+++ b/tests/test_everything.py
@@ -507,22 +507,3 @@ class TestAdvancedInterfaces(unittest.TestCase):
self.assertEquals(ret[0], 51);
self.assertEquals(ret[1], 61);
self.assertEquals(ret[2], 32);
-
- def test_obj_skip_return_val_no_out(self):
- obj = Everything.TestObj();
- # raises an error for 0, succeeds for any other value
- self.assertRaises(GLib.GError, obj.skip_return_val_no_out, 0)
-
- ret = obj.skip_return_val_no_out(1)
- self.assertEquals(ret, None)
-
-class TestSignals(unittest.TestCase):
- def test_object_param_signal(self):
- obj = Everything.TestObj();
-
- def callback (obj_param):
- self.assertEquals(obj_param.props.int, 3)
- self.assertEquals(obj_param.__grefcount__, 2)
-
- obj.connect('sig-with-obj', callback)
- obj.emit_sig_with_obj()
diff --git a/tests/test_gi.py b/tests/test_gi.py
index 0a9b1b2..7e24778 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -770,18 +770,6 @@ class TestArray(unittest.TestCase):
def test_gstrv_inout(self):
self.assertEquals(['-1', '0', '1', '2'], GIMarshallingTests.gstrv_inout(['0', '1', '2']))
- def test_array_gvariant_none_in(self):
- v = [GLib.Variant("i", 27), GLib.Variant("s", "Hello")]
- self.assertEquals([27, "Hello"], map(GLib.Variant.unpack, GIMarshallingTests.array_gvariant_none_in(v)))
-
- def test_array_gvariant_container_in(self):
- v = [GLib.Variant("i", 27), GLib.Variant("s", "Hello")]
- self.assertEquals([27, "Hello"], map(GLib.Variant.unpack, GIMarshallingTests.array_gvariant_none_in(v)))
-
- def test_array_gvariant_full_in(self):
- v = [GLib.Variant("i", 27), GLib.Variant("s", "Hello")]
- self.assertEquals([27, "Hello"], map(GLib.Variant.unpack, GIMarshallingTests.array_gvariant_none_in(v)))
-
def test_bytearray_gvariant(self):
v = GLib.Variant.new_bytestring("foo")
self.assertEquals(v.get_bytestring(), "foo")
@@ -1651,16 +1639,6 @@ class TestPythonGObject(unittest.TestCase):
def do_method_not_a_vfunc(self):
pass
- def test_subsubobject(self):
- class SubSubSubObject(GIMarshallingTests.SubSubObject):
- def do_method_deep_hierarchy(self, num):
- self.props.int = num * 2
-
- sub_sub_sub_object = SubSubSubObject()
- GIMarshallingTests.SubSubObject.do_method_deep_hierarchy(sub_sub_sub_object, 5)
- self.assertEqual(sub_sub_sub_object.props.int, 5)
-
-
class TestMultiOutputArgs(unittest.TestCase):
def test_int_out_out(self):