commit:     27d012085b26cac8a2e27968423a41c9cd38d739
Author:     Lukas Schmelting <lschmelting <AT> posteo <DOT> com>
AuthorDate: Tue May 27 21:52:39 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jun  9 00:19:46 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27d01208

dev-python/pygobject: Skip failing tests

Signed-off-by: Lukas Schmelting <lschmelting <AT> posteo.com>
Part-of: https://github.com/gentoo/gentoo/pull/41404
Closes: https://github.com/gentoo/gentoo/pull/41404
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...detecting-cycle-among-base-classes-typeerr.patch | 21 +++++++++++++++++++++
 .../files/Skip-test-using-dbus-in-sandbox.patch     | 21 +++++++++++++++++++++
 dev-python/pygobject/pygobject-3.52.3.ebuild        |  5 +++++
 3 files changed, 47 insertions(+)

diff --git 
a/dev-python/pygobject/files/Skip-test-detecting-cycle-among-base-classes-typeerr.patch
 
b/dev-python/pygobject/files/Skip-test-detecting-cycle-among-base-classes-typeerr.patch
new file mode 100644
index 000000000000..cbadef48300d
--- /dev/null
+++ 
b/dev-python/pygobject/files/Skip-test-detecting-cycle-among-base-classes-typeerr.patch
@@ -0,0 +1,21 @@
+From 26aa63716d32f90bd67250df4a1234237d18bbad Mon Sep 17 00:00:00 2001
+From: Lukas Schmelting <[email protected]>
+Date: Tue, 27 May 2025 23:47:39 +0200
+Subject: [PATCH 2/2] Skip test detecting cycle among base classes typeerror
+
+Signed-off-by: Lukas Schmelting <[email protected]>
+---
+ tests/test_gi.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tests/test_gi.py b/tests/test_gi.py
+index 9ab4882..8aeb609 100644
+--- a/tests/test_gi.py
++++ b/tests/test_gi.py
+@@ -2860,2 +2860,3 @@ class TestMRO(unittest.TestCase):
+ 
++    @pytest.mark.skip(reason="TypeError: Cycle among base classes")
+     def test_interface_collision(self):
+-- 
+2.49.0
+

diff --git a/dev-python/pygobject/files/Skip-test-using-dbus-in-sandbox.patch 
b/dev-python/pygobject/files/Skip-test-using-dbus-in-sandbox.patch
new file mode 100644
index 000000000000..405b3f6a9acb
--- /dev/null
+++ b/dev-python/pygobject/files/Skip-test-using-dbus-in-sandbox.patch
@@ -0,0 +1,21 @@
+From 5f57664aca65b5bd433b0a016da92bb74ca378d1 Mon Sep 17 00:00:00 2001
+From: Lukas Schmelting <[email protected]>
+Date: Tue, 27 May 2025 23:46:51 +0200
+Subject: [PATCH 1/2] Skip test using dbus in sandbox
+
+Signed-off-by: Lukas Schmelting <[email protected]>
+---
+ tests/test_gdbus.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tests/test_gdbus.py b/tests/test_gdbus.py
+index 8fe3952..d5e9d79 100644
+--- a/tests/test_gdbus.py
++++ b/tests/test_gdbus.py
+@@ -138,2 +138,3 @@ class TestGDBusClient(unittest.TestCase):
+ 
++    @pytest.mark.skip(reason="Use of dbus in sandbox")
+     def test_python_calls_sync(self):
+-- 
+2.49.0
+

diff --git a/dev-python/pygobject/pygobject-3.52.3.ebuild 
b/dev-python/pygobject/pygobject-3.52.3.ebuild
index cbd3548edecb..89e24d6812e0 100644
--- a/dev-python/pygobject/pygobject-3.52.3.ebuild
+++ b/dev-python/pygobject/pygobject-3.52.3.ebuild
@@ -49,6 +49,11 @@ BDEPEND="
        virtual/pkgconfig
 "
 
+PATCHES=(
+       "${FILESDIR}/Skip-test-using-dbus-in-sandbox.patch"
+       "${FILESDIR}/Skip-test-detecting-cycle-among-base-classes-typeerr.patch"
+)
+
 src_unpack() {
        default
        unpack "${P}_${COMMIT}_pythoncapi-compat.gh.tar.gz" || die

Reply via email to