Revert change of "Fix CI freeze" (c89a603)

The original issue is fixed in ibus core now.

Resolves: RHEL-58993
This commit is contained in:
Takao Fujiwara 2024-09-17 10:24:04 +09:00
parent ca11621e9a
commit 54c01ea170

View File

@ -62,40 +62,3 @@ index 4b50a01..0858614 100644
-- --
2.43.0 2.43.0
From c89a60350b2a949306bf75d64e06a0cde3a7846c Mon Sep 17 00:00:00 2001
From: fujiwarat <takao.fujiwara1@gmail.com>
Date: Sun, 12 May 2024 13:01:50 +0900
Subject: [PATCH] tests: Fix CI freeze
Seems infinit calling g_resources_register_unlocked() happens
in register_lazy_static_resources_unlocked() from
g_resources_lookup_data() when ibus_init() is called after
gtk_init() or gdk_display_open() is called.
It's good to delete ibus_init() here since IBus GTK IM module already
calls it.
---
tests/anthytest.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/anthytest.py b/tests/anthytest.py
index 1d18d19..cf2d6bc 100755
--- a/tests/anthytest.py
+++ b/tests/anthytest.py
@@ -77,7 +77,13 @@ class AnthyTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
- IBus.init()
+ # Already called in ibus/client/gtk3/ibusim.c:im_module_init().
+ # Otherwise infinit g_resources_register_unlocked() happens in
+ # register_lazy_static_resources_unlocked()
+ # from g_resources_lookup_data()
+ # or IBus.init() could be called before Gdk.Display.open('') is called.
+ #IBus.init()
+ pass
def setUp(self):
self.__id = 0
--
2.45.0