Subject: Tests failures with pygobject 3.55.3
From: Jan Grulich <[email-masked]>
Date: Wed, 25 Feb 2026 11:33:49 +0000

Origin: https://gitlab.gnome.org/GNOME/libpeas/-/issues/65#note_2690020
Bug: https://gitlab.gnome.org/GNOME/libpeas/-/issues/65
Bug-Debian: http://bugs.debian.org/1131663
Bug-Ubuntu: http://launchpad.net/bugs/2146896
---
 tests/libpeas/extension-py.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/libpeas/extension-py.c b/tests/libpeas/extension-py.c
index 8ec155d..808884b 100644
--- a/tests/libpeas/extension-py.c
+++ b/tests/libpeas/extension-py.c
@@ -59,7 +59,7 @@ test_extension_py_instance_refcount (PeasEngine     *engine,
 
   g_object_add_weak_pointer (extension, (gpointer *) &extension);
 
-  g_assert_cmpint (extension->ref_count, ==, 2);
+  g_assert_cmpint (extension->ref_count, ==, 1);
 
   g_object_unref (extension);
   g_assert (extension == NULL);
@@ -96,7 +96,7 @@ test_extension_py_activatable_subject_refcount (PeasEngine     *engine,
   wrapper = g_object_get_data (object, "PyGObject::wrapper");
   g_assert_cmpint (wrapper->ob_refcnt, ==, 1);
 
-  g_assert_cmpint (G_OBJECT (extension)->ref_count, ==, 2);
+  g_assert_cmpint (G_OBJECT (extension)->ref_count, ==, 1);
   g_object_unref (extension);
 
   /* We unreffed the extension, so it should have been destroyed and our dummy